Hi!

Colin Sampaleanu wrote:
> Sorry if I am being dense, but what is the problem as long as in ejbLoad()
> it uses context.getPrimaryKey() (which it does)? How can it get out of sync
> with the real key, or rather, how can this make it possible to shoot
> yourself in the foot?

The problem is if you forget that you're a BMP bean and don't use
getPrimaryKey, but the attribute in the bean. Then you're gonna get
weeeird behaviour. At least when EJB was new I saw lots of people having
trouble with this (they didn't understand the instance reuse scheme).

If you feel you can handle it, then by all means, go ahead :-) I just
don't trust myself enough to do that :-)

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.dreambean.com
Question reality

===========================================================================
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