[jboss-user] [EJB 3.0] - Re: JTA EntityManager cannot access a transactions
ljcoomber
do-not-reply at jboss.com
Wed Apr 16 11:01:29 EDT 2008
Have spent a while on this myself. The problem (for me at least) was that I I had enabled JTA transactions in persistence.xml, but in components.xml I had configured use of the JPA EntityTransaction API (which is for non-JTA environments) with the line:
<transaction:entity-transaction entity-manager="#{entityManager}" />
Removing this line fixed the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144526#4144526
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144526
More information about the jboss-user
mailing list