This content has been marked as final.
Show 1 reply
-
1. Re: Is @javax.transaction.Transactional supported in WildFly by default?
smarlow Mar 5, 2014 9:14 AM (in response to yangju)1 of 1 people found this helpfulYou might find it helpful to enable TRACE logging for com.arjuna + org.jboss.as.jpa so that you can see the impact (e.g. JTA transactions starting/suspending/resuming/ending) of different settings.
The extended entity manager is only available for (EJB) stateful session beans. You could try using an application managed entity manager instead. Basically, you inject an @PersistenceUnit into EntityManagerFactory and get an EntityManager from the EntityManagerFactory. Be careful not to share the EntityManager between multiple threads as it is not thread safe. The EntityManagerFactory can be shared between threads. Don't forget to close the EntityManager when your done with it and clear your reference to it.