PQ54111, 4.0.1: CONM6000W error with one-phase
CMP
Downloadable files
Abstract
One-phase commit regression in WebSphere® Application
Server V4.0.1 when involving Container Managed Persistence Entity Bean and
Session Bean
Download Description
USERS AFFECTED:
All WebSphere Application Server users of CMP EntityBeans and SessionBeans
that share
the same JDBC DataSource, looked up in the global JNDI namespace
PROBLEM DESCRIPTION:
Illegal use of 1PC resource message when sharing DataSource between CMP
EntityBean and SessionBean
While initializing a servlet in WCS, the exception "CONM6000W: Illegal use
of 1PC resource in transaction". InfoCenter documentation says this occurs
when trying to prepare a one-phase-commit resource for a two-phase commit.
The same code worked in WAS 3.5x.
When using a CMP EntityBean and a SessionBean that are sharing the same
JDBC DataSource, the SessionBean will erroneously obtain a different
datasource instance than the CMP bean, resulting in the message ILLEGAL
USE OF 1PC RESOURCE IN TRANSACTION because the transaction manager
requires a 2PC resource if two datasource instances are used.
SOLUTION:
Corrected code in server runtime that was causing erroneous return of two
DataSource instances.