aspose file tools*
The moose likes Distributed Java and the fly likes RMI - Basic Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI - Basic Question " Watch "RMI - Basic Question " New topic
Author

RMI - Basic Question

R Dom
Greenhorn

Joined: Sep 08, 2010
Posts: 19
I am implementing RMI application. I have gone through many tutorials on net and tried them.

What I understood is we need Client, MessagePassingInterface and Server to implement RMI.

In my application the Client and the Server reside on different machines and Both of them need MessagePassignInterface to invoke methods remotely.

Where should MessagePassingInterface reside? At client side or at server side?

Both client and server need MessagePassingInterface it is impossible to compile if it is missing.

would having MessagePassingInterface at both ends serve the purpose?

Thanks for help.


Cheers,
RD
Ram Narayan.M
Ranch Hand

Joined: Jul 11, 2010
Posts: 247

Remote Interface will be residing at both Client and Server JVMs...

Remote Interface should be publicized to be used by Clients...

Server JVM ensures of providing services to Clients through Remote Interface.

Client will make use of this interface and call the remote methods via Remote interface.

Client will download RemoteStub from rmi registry running in Server side. RemoteStub will implement Remote Interface.

Using RemoteStub, Client can invoke remote methods in Remote bean running in Server JVM.

Make sure, when any updates are done in Remote Interface at server side, Client should be given the updated interface...


SCJP 6 [SCJP - Old is Gold]
 
wood burning stoves
 
subject: RMI - Basic Question