• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

creating first Client server application

 
Ranch Hand
Posts: 65
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
I am not new to Java but new to j2ee. I don't know if it is the right place to ask this type of question. If not then please point me to the right place.
I want to make a client server application over http. I want to make a server that generates some data and over http i want to send this data to client.
Client will further process this data. That is my goal.
I have no clue how to start. I mean logic is not a problem but shall i make simple servlet and then use JMS to send data in queue or there is better way to do it??
Can anyone please help me to make things bit clear.
plzx help!
Thanks guys!!!
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTTP is not the appropriate technology for having a server contact a client.
 
Sheriff
Posts: 22821
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTTP can be used if the client queries the server for data, but if the server pushes the data then you would need an HTTP server on each client. You don't want that. You should use a different communication mechanism, like direct socket communication or JMS. At work we once used RMI for that.
 
Jeena Jeen
Ranch Hand
Posts: 65
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, Thanks for the reply. I want to make application focusing on only one client right now. So HTTP iwon't be any problem. I don't need to set up multiple http server on clients. Only one client receiving data.
So if I consider this kind of system then what should i use? So i was thinking like this.
create sever side application using jBoss and send message with JMS.
And on the other side client application also running JBOss and it can collect data from the queue.
Does it make any sense what I just said or not.
 
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic