JBoss Community

Re: EJB 2.1 BMP with CMT and RequiresNew in JBoss AS 7.1.0 Final

created by Daniel Zhelyazkov in EJB3 - View the full discussion

Turns out I was wrong, the Entity Bean was recently changed to Requres. So what happens is this

SLSB starts TX1

Entity creates record within TX1

record.getProperties() starts new TX2 and calls update and commit at end of TX2, and here lock happens

 

the question remains why record.getProperties() spawns new TX

 

daniel

Reply to this message by going to Community

Start a new discussion in EJB3 at Community