• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 phase commit

Kodo Tan
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have a code that implements 2 phase commit using programmatic transaction control. The code basically accesses 2 database running at 2 physical location with 2 different datasources.
The code works fine in 1 application server but hit the following error in bea. I have also ensure that I had clicked the 2 phase commit option in bea admin console.
Any one knows how to resolve this ?
java.sql.SQLException: Connection has already been created in this tx context fo r pool named KernlPool. Illegal attempt to create connection from another pool: EmanPool
at weblogic.jdbc.jts.Driver.connect(Driver.java:123)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
at org.exolab.castor.jdo.engine.DatabaseRegistry.createConnection(Unknow
n Source)
at org.exolab.castor.jdo.engine.TransactionContextImpl.getConnection(Unk
nown Source)
at org.exolab.castor.persist.ClassMolder.create(Unknown Source)
at org.exolab.castor.persist.LockEngine.create(Unknown Source)
at org.exolab.castor.persist.TransactionContext.create(Unknown
at org.exolab.castor.jdo.engine.DatabaseImpl.create(Unknown
at com.ekernel.examples.echo.service.EchoServiceBean.test2db(EchoService
at com.ekernel.examples.echo.service.EchoServiceBean.doProcess(EchoServi
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic