This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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 Parallel Calamity
I agree. Here's the link:
subject: RMI server communication with client
Similar Threads
What JARs are needed on the client side to access EJBs deployed on a Websphere 7 server?
Can I Have Two-Way Communication with Sockets with just one Port?
RMI and local mode my zonealarm complains
Server/Client simple doubt
How to find a portnumber in java