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?
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.
subject: Return type of remote component interface?Does it required Serilizable object?