aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes creating first Client server application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "creating first Client server application" Watch "creating first Client server application" New topic
Author

creating first Client server application

Jeena Jeen
Ranch Hand

Joined: Feb 11, 2009
Posts: 42
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!!!
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

HTTP is not the appropriate technology for having a server contact a client.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 18370

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Jeena Jeen
Ranch Hand

Joined: Feb 11, 2009
Posts: 42
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.
 
 
subject: creating first Client server application
 
Threads others viewed
how to send a file or data modified in server side to client
What comes out of the ObjectOutputStream is not what goes into the ObjectInputStream
Implimentation of SSL
What comes out of the ObjectOutputStream is not what goes into the ObjectInputStream
sharing data among applications in the same server
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture