Hey
Saurabh Sahai wrote:
> 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.
No it doesn't. :-) The container could generate a class (during runtime)
which calls the ejbFindByPrimaryKey-method. Since that technique relies
on compile-time knowledge (i.e. the generated class uses the specific
EntityBean) reflection is not necessary.
There is absolutely no need to add ejbFindByPrimaryKey to the
EntityBean-interface. It wouldn't work that well either since CMP-beans
don't implement it.
/Rickard
ps. My XS server does this so I know it works ds
--
Rickard �berg
Computer Science student@LiTH
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".