Jim,
The ejbActivate method in the example sets the id attribute to the primary
key from the context. This method is called by the container when it changes
to entity that the bean is referencing, before it does this it changes the
primary key value to the primary key of the entity the bean will now
represent. While the bean is activated you can just refer to the id
attribute to get access to the primary key value.
Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim Downing
Sent: 21 May 2001 17:04
To: [EMAIL PROTECTED]
Subject: [JBoss-user] ejbLoad difference between Sun RI and JBOSS
Hi,
We recently had a problem with a finder method that we thought was a really
stupid error, but turned out not to be. The ejbLoad method of one of our
BMP Entity beans was written using the Sun tutorial 'AccountEJB' bean as an
example. This example doesn't call context.getPrimaryKey(), but our bean
wouldn't work unless the the primary key was obtained from the context.
I can see how obtaining the primary key from the context is necessary - but
how is the Sun example meant to work without doing so?
jim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user