• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Live ref object Object ID at transport layer in RMI

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

On the server side, when the server object is created, the constructor of UnicastRemoteObject performs an exportObject(). Inside exportObject(), an UnicastServerRef object is instantiated and exported. It creates a live reference object (the transport layer) which contains an IP address, a TCP port number and an Object ID.

From some article i read this.

Then a mapping from the Object ID to the stub and skeleton is registered in an object table residing in the transport layer.

Could nyone plz tell me wat is this:
1.Live reference object
2.Object ID
How it relates to stub and skeleton and wat is this mapping?

I searched a lot in UnicastServerRef class's exportObj() method, it further defines some Target class object. In fact i searched all this in Util class then WeakClassHashMap, WeakHashMap, then SoftReference...But i did not understand Object ID , live reference object etc.

Any suggestion will be appreciated.

Tx in advance

Bye

Naseem Khan
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic