Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why should remote method arguments/return types always be Serializable

 
jishnu dasgupta
Ranch Hand
Posts: 103
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
Thiago Alves de Moraes
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remote method should have arguments and return types serializable because you are going through a remote call, that is, passing data through the network.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic