wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes RMI server communication with client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI server communication with client" Watch "RMI server communication with client" New topic
Author

RMI server communication with client

Sudhakar Krishnamurthy
Ranch Hand

Joined: Jun 02, 2003
Posts: 76
Hi, newbie question on server communication.

I have a Client - Server communication setup in the usual sense where my client does a look up for server task and starts communicating with the server. All this is fine and great...now say my server needs to communicate asynchronously with the client, how would one go about doing this?

I am pretty sure we don't have to register my client as a RMIServer (or atleast I hope thats not the way it is).


Regards,
-Krish
Mattias Johansson
Greenhorn

Joined: Oct 21, 2007
Posts: 11
Leave a reference to the clients interface on the server and it can then use it to communicate with the client.
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 291

Your worst fears are at hand. Yes, your client must become a server, but it's not all that bad. See here: Callback


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
 
Don't get me started about those stupid light bulbs.
 
subject: RMI server communication with client