[jboss-user] [EJB3] - Re: 'You cannot commit during a managed transaction' issue

jaikiran pai do-not-reply at jboss.com
Thu Apr 21 03:23:30 EDT 2011

jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion

"Re: 'You cannot commit during a managed transaction' issue"

To view the discussion, visit: http://community.jboss.org/message/601312#601312

What you need is bean managed transactions, which can be achieved by setting @javax.ejb.TransactionManagement(TransactionManagementType.BEAN) on the bean implementation class or using the following in the ejb-jar.xml:


By the way, I would recommend that you try the latest AS 6.1.0 SNAPSHOT  http://community.jboss.org/thread/161386 http://community.jboss.org/thread/161386 since there was a bug (with a workaround)  https://issues.jboss.org/browse/EJBTHREE-2238 https://issues.jboss.org/browse/EJBTHREE-2238 in 6.0.0.Final related to Bean managed transactions.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110421/d1debe22/attachment.html 

More information about the jboss-user mailing list