public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this;
}
//other methods that must implement
the interface
}
Lösung
Vermeiden Sie die Rückgabe von this. Verwenden Sie stattdessen 'getEJBObject()'.
public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this.getEJBObject();
} //other methods that must implement the interface
}