This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI server communication with client" Watch "RMI server communication with client" New topic

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 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).

Mattias Johansson

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 Reactive Generator
I agree. Here's the link:
subject: RMI server communication with client
jQuery in Action, 3rd edition