[JBoss-user] [EJB 3.0] - Re: transactions and distributed transactions in ejb3

2006-07-10 Thread epbernard
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=

[JBoss-user] [EJB 3.0] - Re: transactions and distributed transactions in ejb3

2006-07-10 Thread grdzeli_kaci
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

[JBoss-user] [EJB 3.0] - Re: transactions and distributed transactions in ejb3

2006-07-10 Thread grdzeli_kaci
[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

[JBoss-user] [EJB 3.0] - Re: transactions and distributed transactions in ejb3

2006-07-08 Thread grdzeli_kaci
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 -

[JBoss-user] [EJB 3.0] - Re: transactions and distributed transactions in ejb3

2006-07-07 Thread [EMAIL PROTECTED]
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