I'm looking at performance when a client accesses a BMP entity bean.  My
clients typically locate the bean using "findByPrimaryKey", and then
invoke a method on the bean.

JBoss keeps a cache of entity bean instances for quick access, so they
don't need to be loaded from the DB.  However, every time a client
(including other beans) uses "findByPrimaryKey", my
"ejbFindByPrimaryKey" method is called, even though the bean instance is
already in JBoss' cache.

Could you check your cache first, then call my ejbFind method only if
its not already in the cache?  That would save a lot of DB hits on
frequently accessed entity beans.

(Otherwise, I have to hit the database every time to determine whether
the bean exists.)

Keith L. Musser
Integrated Dynamics, Inc.
812-371-7777
email:  [EMAIL PROTECTED]




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to