Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of remote Interface in RMI  RSS feed

 
Deepak Kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!