The object you are returning is probably not serializable. You must implement Serializable.

 

I have tons of methods that return the Collection interface.

 

 

-----Original Message-----
From: Paul Knepper [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 29, 2001 12:34 PM
To: Orion-Interest
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