Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

remote reference

 
Olivier poiiop
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vikasids sharma
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic