the answer is in your question
 
MyInterfaceImpl is not Serializable.
 
you have 2 options: make your interface extend java.io.Serializable, or make your Impl class also implement java.io.Serializable.
 
Noah
----- Original Message -----
Sent: Friday, June 29, 2001 2:33 PM
Subject: returning an interface

Has anyone ever returned an interface from an EJB?
 
I get the following error:
com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: MyInterfaceImpl
 
 
Here is my Remote Interface:
public interface Test extends EJBObject
{
    public IMyInterface getInterface()
        throws RemoteException;
}
 
Here is the implmentation of the method:
    public IMyInterface getInterface()
        throws RemoteException
    {
        return new MyInterfaceImpl();
    }
 
Thanks,
Paul

Reply via email to