Thanks Vlada.

>Yes, the home interface of every entity bean must have the
>findByPrimaryKey method, and every entity class with bean
>managed persistence must define the ejbFindByPrimaryKey
>method.
>
>The implementation of the ejbFindByPrimaryKey should verify
>that the entity with the given primary key exists.
>


That is precisely what my point is. If every BMP entity bean has to have an
ejbFindByPrimaryKey method, should'nt this be a method on the EntityBean
interface. (Maybe we need a BMPEntityBean class).

I am saying this because from a container's point, even though the container
knows that it is dealing with a BMP entity bean, it cannot do something like
:

    EntityBean bean;
    .........
    bean.ejbFindByPrimaryKey(...)

It will need to use reflection to get the find method and invoke it.

Thanks.

-Saurabh

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to