[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

rituraj_tiwari do-not-reply at jboss.com
Sun May 25 14:42:25 EDT 2008


Folks,
Here is a resolution to my problem:

What fixed this for me was doing
UserTransaction.begin() before creating the entity manager from the entity manager factory.

If I create my entity manager and then start the user transaction, the entity manager is never able to associate with the started transaction. All persistent operations go to the abyss.

Not sure if this is a bug or known and accepted behaviour.

-Raj

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

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



More information about the jboss-user mailing list