This content has been marked as final.
Show 5 replies
-
1. Re: how to use EntityManagerFactory with UserTransaction
richard.qin May 24, 2010 4:52 AM (in response to javatwo)JTA is needed to support UserTransaction, moreover you must use a XA support datasource in your -ds.xml
-
2. Re: how to use EntityManagerFactory with UserTransaction
javatwo May 24, 2010 1:47 PM (in response to richard.qin)Thanks. Can data source be added programmatically to work with UserTransaction?
-
3. Re: how to use EntityManagerFactory with UserTransaction
richard.qin May 24, 2010 8:28 PM (in response to javatwo)when a connection is retrieved from the DataSource, it has already been enlisted in a global transaction if there is a current global transaction.
-
4. Re: how to use EntityManagerFactory with UserTransaction
javatwo May 24, 2010 10:14 PM (in response to richard.qin)We need to add DataSource on demand at runtime without JBoss restart . How to add a data source programmatically and let the dataSource participate JTA? Thanks
-
5. Re: how to use EntityManagerFactory with UserTransaction
richard.qin May 25, 2010 10:42 AM (in response to javatwo)the easy way is to create a -ds.xml file in a directory then deploy it, or you may try another complex way commented on the issue https://jira.jboss.org/browse/JBJCA-12