remove @TransactionManagement(value = TransactionManagementType.BEAN)
in most case you don't want to handle tx management yourself
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956549#3956549
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=
ok thanks u're rigth it works but
what can i do when i wont work with multiple database ?
i think that i need to xml datasourse file (for example : oracle-xa-ds.xml and
postgres-ds.xml) both of them configured corectly :
oracle ds file :
|
|
| XAOracleDS
|
| fa
[EMAIL PROTECTED]
did u mean "JBoss Transactions API" named ArjunaTA ?
i removed this code from my program
| manager.getTransaction().begin();
| manager.getTransaction().commit();
| manager.getTransaction().rollback();
|
but i get en error again :(
error
| javax.persistence.Tr
thanks ...
i will try it .
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956385#3956385
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956385
-
Hi, your English is just fine!
The issue is you are trying to acquire a transaction in a component that
manages transactions for you.
Remove the
|
| manager.getTransaction().begin();
| manager.getTransaction().commit();
|
|
and the associated rollback.
For the distributed