I'm not too sure.... is your ServiceMix also configured to use Geronimo's TransactionManager? (java:/TransactionManager)
alex On 11/5/07, Kristian Köhler <[EMAIL PROTECTED]> wrote: > > Hi > > > > Is there a way to configure the Transaction Manager lookup > > from Ode. I like to use the TM used from the DataSource... > > I added the following properties to the persistence.xml file within > bpel-store and dao-jpa. > > -- 8< (start) -- > > <properties> > <property name="openjpa.ManagedRuntime" > value="jndi(TransactionManagerName=java:/TransactionManager)"/> > </properties> > > -- 8< (end) -- > > This works fine with 1 thread. When I test my sample with 3 thrads the > following error arise (Invalid Xid): > > -- 8< (start) -- > > 09:47:11,851 ERROR [SimpleScheduler] Error while executing transaction > javax.transaction.RollbackException: Unable to commit: transaction marked > for rollback > at org.apache.geronimo.transaction.manager.TransactionImpl.commit( > TransactionImpl.java:271) > at > org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit( > TransactionManagerImpl.java:238) > at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction > (SimpleScheduler.java:180) > at org.apache.ode.scheduler.simple.SimpleScheduler$4.call( > SimpleScheduler.java:333) > at org.apache.ode.scheduler.simple.SimpleScheduler$4.call( > SimpleScheduler.java:330) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java > :269) > at java.util.concurrent.FutureTask.run(FutureTask.java:123) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( > ThreadPoolExecutor.java:650) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > 09:47:11,976 ERROR [SimpleScheduler] Error while executing transaction > javax.transaction.RollbackException: Error during one-phase commit > at org.apache.geronimo.transaction.manager.TransactionImpl.commit( > TransactionImpl.java:311) > at > org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit( > TransactionManagerImpl.java:238) > at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction > (SimpleScheduler.java:180) > at org.apache.ode.scheduler.simple.SimpleScheduler$4.call( > SimpleScheduler.java:333) > at org.apache.ode.scheduler.simple.SimpleScheduler$4.call( > SimpleScheduler.java:330) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java > :269) > at java.util.concurrent.FutureTask.run(FutureTask.java:123) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( > ThreadPoolExecutor.java:650) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > Caused by: javax.transaction.xa.XAException: Invalid Xid > at org.apache.geronimo.connector.outbound.LocalXAResource.commit( > LocalXAResource.java:53) > at org.apache.geronimo.transaction.manager.TransactionImpl.commit( > TransactionImpl.java:302) > ... 9 more > > -- 8< (end) -- > > Any ideas? > > Kristian >
