• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI - Basic Question

 
R Dom
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic