my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Return type of  remote component interface?Does it required Serilizable object? 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 "Return type of  remote component interface?Does it required Serilizable object?" Watch "Return type of  remote component interface?Does it required Serilizable object?" New topic
Author

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

vijay Mamilla
Ranch Hand

Joined: Dec 29, 2004
Posts: 94
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

Joined: Feb 13, 2004
Posts: 19
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.
 
Consider Paul's rocket mass heater.
 
subject: Return type of remote component interface?Does it required Serilizable object?