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

Return type of remote component interface?Does it required Serilizable object?

 
vijay Mamilla
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider a Customer class which doesn't implement the java.io.Serializable or java.rmi.server.UnicastRemoteObject interface. The Customer object can be defined as a return type of a method defined in the remote component interface of a session or entity bean?

Thanks,
Vijay
 
David McDonagh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arguments and return types for Remote home interface methods must be legal RMI-IIOP types (Serializable, primitive, Remote, collections or arrays .... etc. So I don't think the example you gave is legal.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic