File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
It's not a secret anymore!