File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Live ref object Object ID at transport layer in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Live ref object Object ID at transport layer in RMI" Watch "Live ref object Object ID at transport layer in RMI" New topic
Author

Live ref object Object ID at transport layer in RMI

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
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


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Live ref object Object ID at transport layer in RMI
 
Similar Threads
RMI-IIOP Pass By reference
where's the "sharpen your pencil" answer?
RMI implementation
Exception in RMI program
Question about Stub and Skeleton