aspose file tools
The moose likes Distributed Java and the fly likes Use of remote Interface in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Use of remote Interface in RMI" Watch "Use of remote Interface in RMI" New topic
Author

Use of remote Interface in RMI

Deepak Kumar
Greenhorn

Joined: Jul 21, 2005
Posts: 15
Hi,

I have small query regarding the remote interfaces used in the distributed java (RMI and EJB). When we lookup the remote object, why the type cast is done as RemoteInterface. and what is the content of Stub and Skeleton. Please explain this process clearly.

Thanks in Advance.
Deepak
joseph edwards
Greenhorn

Joined: Nov 26, 2005
Posts: 12
The stubs and skeletons are used to identify the remote connection and session, specifically the location of the distributed objects. This includes ports / ip address / naming information, etc...

In fact, you can examine the contents of the stub and skeleton using a decompiler or a hexeditor. You'll see meta information regarding the location of the objects.

Originally posted by Deepak Vernekar:
Hi,

I have small query regarding the remote interfaces used in the distributed java (RMI and EJB). When we lookup the remote object, why the type cast is done as RemoteInterface. and what is the content of Stub and Skeleton. Please explain this process clearly.

Thanks in Advance.
Deepak
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Use of remote Interface in RMI
 
Similar Threads
Remote method/argumet data structure
How to pass the output of one class from one machine to another class in a different machine
RMI-IIOP and JNDI
Difference between EJB and RMI
Field Names to the GUI Client