A SLSB with 'Required' trans attribute calls two (2) Entity Beans (EBs) with CMP.
All EBs methods have trans attribute = 'Required'. EBs are using _different_ connection
pools.
When second EB is called the following exception is raised. 'Enable Two-Phase
Commit' does not seem to make any difference. Any ideas? Thanks
--------------------------------------------------
javax.ejb.FinderException: Couldn't get connection: java.sql.SQLException: Connection
has already been created in this tx context for pool named Pool_1. Illegal attempt
to create connection from another pool: Pool_2
at weblogic.jdbcbase.jts.Driver.getExistingConnection Driver.java:272)
at weblogic.jdbcbase.jts.Driver.connect(Driver.java:119)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:44)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:256)
...
If you want multiple resources to participate in an XA transaction, you need to use TxDataSources instead of
connection pools.
-- Rob