I guess I got confused because I never see a log message from findByPrimaryKey
from my print statement.
I would expect to see at least one log message the fist time the bean is loaded.
I would like to see the log so I know what sql gets issued.
The call to ejbLoad was not related to the findByPrimaryKey. :)
After I findByPrimaryKey, I call a get method and then I see ejbLoad log message
public TbcAddrPk ejbFindByPrimaryKey(TbcAddrPk pk)
throws FinderException, RemoteException {
log("ejbFindByPrimaryKey"); // ** I never see this
->> added this line this.pk = pk;
.....
}
marc fleury wrote:
> The passivation with the id null is a fixed bug
>
> the findByPK is an optimization that was put in recently. If your bean is
> already in cache then we don't issue a findByPK but we ping the instance in
> cache instead.
>
> That ejbLoad is called is strange (on a findByPK) are you sure about that?
> there should be no call on your target bean at all (in fact sometimes there
> isn't a target bean) please verify that on a duplicate findByPK you get that
> called....
>
> marc
>
> |-----Original Message-----
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Russo
> |Sent: Sunday, December 03, 2000 7:47 AM
> |To: jBoss
> |Subject: [jBoss-User] PRE-2.1 BMP findByPrimaryKey
> |
> |
> |I built sources PRE-2.1 from cvs on 12/3
> |The findByPrimaryKey method in my BMP implimentation is not being called
> |
> |when I issue the call from the client. It appears that ejbLoad is
> |getting called instead.
> |It works fine in jBoss-2.0_FINAL. The findByPrimaryKey method gets
> |called but not the ejbStore.
> |
> |In a possible unrelated observation, my beans are benig passivated with
> |id = null in jBoss-2.0_FINAL.
> |In PRE-2.1, passivated beans the have the id = primary key class id.
> |
> |I was wondering if i'm doing something wrong.
> |
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]