File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Why should remote method arguments/return types always be Serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Why should remote method arguments/return types always be Serializable" Watch "Why should remote method arguments/return types always be Serializable" New topic
Author

Why should remote method arguments/return types always be Serializable

jishnu dasgupta
Ranch Hand

Joined: Mar 11, 2011
Posts: 100

Hi all,

I have just started off with EJB and i cant make sense that whay should my argument/return types of method must be of Serializable type, for a remote Object.

Again, if it is Serializable, then the Class 'es must be present in the remote client, if i want to deserialize my remote Object/ stub. In that case what is the point of having a RPC?? Please help me out as I am really confusing myself!!!


If debugging is the process of removing bugs, then programming must be the process of putting them in. -- Edsger Dijkstra

Thiago Alves de Moraes
Greenhorn

Joined: Dec 09, 2010
Posts: 8
Remote method should have arguments and return types serializable because you are going through a remote call, that is, passing data through the network.


--
thiago moraes
 
 
subject: Why should remote method arguments/return types always be Serializable
 
Threads others viewed
Remote object && Serializable object
Return type of remote component interface?Does it required Serilizable object?
Collections in component interface
How to understand Passed by Reference or Copy of Value for Local or Remote Interface?
Examples of ILLEGAL RMI-IIOP Types
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com