wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes RMI Stubs 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 Stubs " Watch "RMI Stubs " New topic
Author

RMI Stubs

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
hi all
Please do let me know in RMI how does method call is processed from stub at client side to skeleton at server side.
Stub is remote reference to remote object with all remote methods(only signatures) cloned to it.
When client makes call on remote object, call in intercepted by stub which internally delegates this call to remote object(skeleton precisely).
My question is how does the method call propogates from stub internally?
thanks in advance
Vikas


Thanks
Vikas Sharma
SCJP(1.4)
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

It makes use of sockets internally.


Groovy
Idly Vada
Ranch Hand

Joined: Sep 02, 2003
Posts: 135
There's a virtual layer in RMI called remote reference layer which is used by stub and skeleton.
By default stub and skeketon use TCP to communicate internally. How ever we can change this using factory methods.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

http://java.sun.com/j2se/1.4.2/docs/guide/rmi/socketfactory/index.html
For using your own socket factory.
 
 
subject: RMI Stubs
 
Similar Threads
Local vs. Remote Interface
Query regarding Ejbs
RMI and EJB...
How we get the Ejb home and ejb remote implementaion at clent side?
stubs, skeletons, home objects and interfaces