Marcin Chalotowski wrote:
> 
> Hello!
> 
> I have deployed a BMP Entity Bean. Creating, invoking bussiness methods
> works fine but the entity can't be removed. When i am calling remove()
> method nothing happens. The same is with findByXXXXXX methods. Where
> should i check if everything is done properly?

I had a similar problem with finder methods when porting some BMP
entity beans from the Jonas container.
Seems that JBoss wants us to declare the ejbFindByXXXXXX method
explicitly in the bean implementation class, and does not allow
these methods to be inherited from a superclass.

To fix I created an ejbFindByXXXXXX method in the bean implementation
class that just does super.ejbFindByXXXX(...).

This seems to be violating EJB1.1 section 9.2.2:
 "The entity bean class may have superclasses and/or superinterfaces.
  If the entity bean has superclasses, the business methods, the
  ejbCreate and ejbPostCreate methods, the finder methods, and the
  methods of the EntityBean interface may be implemented in the
  enterprise bean class or in any of its superclasses."

Maybe the cause of this is the implementation of getFinderMethod()
in org.jboss.ejb.plugins.BMPPersistenceManager, where the call
to beanClass.getDeclaredMethod(...) should be replaced with
beanClass.getMethod(...).


Best Regards,

Ole Husgaard.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to