Esempio

public class BeanClass implements javax.ejb.EntityBean {
public Object returningMethod () {
//..
return this;
}

//other methods that must implement the interface
}

Soluzione
Evitare di restituire ciņ. Utilizzare invece getEJBObject().


public class BeanClass implements javax.ejb.EntityBean {
public Object returningMethod () {
//..
return this.getEJBObject();
}

//other methods that must implement the interface
}