public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this;
}
//inne metody, które muszą implementować
interfejs
}
Rozwiązanie
Unikaj zwracania wskaźnika this. Używaj w zamian metody getEJBObject().
public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this.getEJBObject();
} //inne metody, które muszą implementować interfejs
}