*
The moose likes EJB and other Java EE Technologies and the fly likes remote reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "remote reference" Watch "remote reference" New topic
Author

remote reference

Olivier poiiop
Greenhorn

Joined: Oct 24, 2003
Posts: 5
Hello
i would like to understand what is exactly a remote reference and what does it contains. Is it an instance of the stub ? is this stub created on the server and then serialized to be pased to the client ? Is it information about remote object and about the stub to instantiate in the client memory ?
thank you very much
Olivier
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
A remote reference is a reference to the stub object, which knows how to pass the method invocations to the target object on the server-side. In practise, this information might include an IP address, port number, and some identifiers needed by the application server's plumbing to route the invocation to the correct object.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
Lasse
Is not that the stub and remote reference are one and same entity? .
A remote reference(stub)at client side is reference to remote object that is ejb object.Both stubs and skeletons are created at server side.When we call create() on home object , reference to ejb object which we call stub is returned to client code.
Originally posted by Lasse Koskela:
A remote reference is a reference to the stub object, which knows how to pass the method invocations to the target object on the server-side. In practise, this information might include an IP address, port number, and some identifiers needed by the application server's plumbing to route the invocation to the correct object.


Thanks
Vikas Sharma
SCJP(1.4)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: remote reference