A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
RMI - Basic Question
Joined: Sep 08, 2010
Oct 23, 2011 04:46:11
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.
Joined: Jul 11, 2010
Oct 24, 2011 13:56:34
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
from rmi registry running in Server side.
will implement Remote Interface.
, 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]
I agree. Here's the link:
subject: RMI - Basic Question
Rmi Call Back Issue!!!
naming is it OS specific
Newby RMI question
Does EJB also use dynamically download?
Client and Server on different machines
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014