public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this;
}
//other methods that must implement
the interface
}
Solution
Avoid returning this. Use getEJBObject() instead.
public class BeanClass implements javax.ejb.EntityBean { public Object returningMethod () { //.. return this.getEJBObject();
} //other methods that must implement the interface
}