David,
Check the "commit-option" in jboss.xml / standardjboss.xml. It should
be safe to do this for commit-option "A" (i.e. JBoss has exclusive
access to the database - no external modification), but maybe not for
the other options.
- Keith
-----Original Message-----
From: David Wall <[EMAIL PROTECTED]>
To: jBoss <[EMAIL PROTECTED]>
Date: Thursday, November 30, 2000 7:51 PM
Subject: Re: [jBoss-User] findByPrimaryKey performance
>> 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.
>
>Doesn't it have to do it this way in a distributed world since it's
possible
>the cache is stale? I'm not sure about the EJB spec on this, but the
data
>in a bean could be modified by other beans or programs external to the
>container.
>
>David
>
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]