Hi!

Darius Davidavicius wrote:
> I have to reopen this discussion :)
> I using Bean managed Entity bean with <commit-option>A</commit-option>
> parameter.
> My test looks like:
> 
> aEntity = findByPrimaryKey(1);
> aEntity.getParam();
> 
> aEntity = findByPrimaryKey(1);aEntity.getParam();
> aEntity = findByPrimaryKey(1);aEntity.getParam();
> 
> Application server function calls:
> ::ejbFindByPrimaryKey(1)
> ::ejbActivate()
> ::ejbLoad()
> ::getParam()
> ::ejbStore()
> 
> ::ejbFindByPrimaryKey(1)::getParam()::ejbStore()
> 
> ::ejbFindByPrimaryKey(1)::getParam()::ejbStore()
> 
> My ejbStore() function has dirty flag where i check if it should be
> done DB update or not.
> But my question is:
> Why ejbFindByPrimaryKey(1) function is called every time. 

The current JBoss version in CVS does not call fBPK if it is already
activated.

Do you have this, and it still doesn't work? Check the source for
org.jboss.ejb.plugins.BMPPersistenceManager and the callFinderMethod
method. 

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to