This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

True or False : Argument passing by remote client

 
Amirr Rafique
Ranch Hand
Posts: 324
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The arguments specified by a Remote client to an enterprise bean are passed through reference.


Aren't the arguments send by a remote client are passed by value. Please confirm

Thanks
 
leonardo segala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I maybe wrong, but don't are any way to pass arguments by reference through remote client, because the idea is a request and a response.
 
ryan sukale
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amirr,

Remote clients are assumed to exist on different JVM's. So, i dont think that its possible to use pass by reference for communication between a remote client and an enterprise bean.

Regards,
Ryan Sukale
 
leonardo segala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amirr,

Complementing, if the interface is not annotated, or if Local, then the arguments will be passed by reference.

Regards,
 
Rajesh So
Ranch Hand
Posts: 149
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could you please recollect that arguments that we pass to remote interfaced beans or the values that we receive from them should have to be definitely Serializable.

One purpose of Serialization is that it need not be reference based, but rather it should be cabable of being assembled (deserialized) from the disassembled pieces.

Remote communications are Serializable objects. The value is the deserialized objects.

I hope I have not confused you.

Regards,
Rajesh
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic