aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes True or False : Argument passing by remote client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "True or False : Argument passing by remote client" Watch "True or False : Argument passing by remote client" New topic
Author

True or False : Argument passing by remote client

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
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

"Know where to find the solution and how to use it - that's the secret of success."
leonardo segala
Greenhorn

Joined: Sep 02, 2009
Posts: 26
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

Joined: Aug 11, 2007
Posts: 53
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


SCJP 5.0, SCWCD 5.0, SCBCD 5.0
leonardo segala
Greenhorn

Joined: Sep 02, 2009
Posts: 26
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

Joined: Oct 08, 2002
Posts: 141
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
 
subject: True or False : Argument passing by remote client