[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBboss Persistence propagation bug

asmithJBoss do-not-reply at jboss.com
Mon May 28 11:34:09 EDT 2007


I have the following scenario:

* SessionBeanA calls a method in SessionBeanB (both of which are in the same transaction context as both are annotated @REQUIRED)

* SessionBeanB does a find(EntityClassA, 1) on an entity, and updates some fields

* SessionBeanA then continues and does a find on the same entity find(EntityClassA, 1), but does not get the updated instance resulting from changes made by SessionBeanB

I inserted another find after the udpate at the end of SessionBeanB, to prove the entity was cached, as I got back the updated instance.  However, when I get back into SessionBeanA,  it does not appear that the persistence context is being propagated correctly.

Shouldn't SessionBeanA get the updated entity instance from SessionBeanB?   This appears to be a bug, as I am getting a fresh instance from the database, even though I do a find on the same class and primary key.


Andrew

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049072#4049072

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049072



More information about the jboss-user mailing list