APAR status
Closed as program error.
Error description
An application which has defined a Resource Reference and
instead decides to access the resource using a direct lookup,
will get a data source with incorrect properties. The resource
reference properties will be used.
.
If in an ear, the application uses two different mechanisms
to access a data source:
1) by Resource Reference (indirect) JNDI lookup (java:comp/env/
jdbc/ds)
2) by direct JNDI lookup (jdbc/ds)
and the resource reference jndi binding is set to jdbc/ds, when
the application accesses the data source via a direct JNDI
lookup and the JNDI name is also defined as the JNDI binding of
the resource reference, the data source that is returned uses
the resource reference properties. Ths can result in shareable
connection usage when the expected behavior should be
unshareable connections, or a different isolation level than
what is intended to be used.
.
This is defect 187282.
One side effect of the fix for this is that the informational
message J2CA0122I is logged when this condition is detected.
This will result in an increase in these messages being logged.
The logging of J2CA0122I is fixed by APAR
PQ87278.
.
Also, if an application is expecting the resource reference
properties to be used when the direct JNDI lookup is done, it
will need to do an indirect JNDI lookup after the fix is
installed to get the same behavior.
Local fix
To do a direct lookup, refer to the object as
jdbc/ds, where this JNDI name is the actual JNDI
name of the data source.
To do an indirect lookup of the resource, refer to it as
java:comp/env/jdbc/ds.
This will lookup the resource reference.
Problem summary
****************************************************************
* USERS AFFECTED: J2EE developers accessing a resource *
* using direct JNDI lookup mechanism, *
* instead of 'Resource Reference' lookup. *
****************************************************************
* PROBLEM DESCRIPTION: Incorrect datasource object is *
* returned for direct lookup, when *
* resource reference is also defined. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
An application component which has configured a resource
reference, but instead choose to get a datasource via
direct lookup gets an incorrect datasource. The returned
datasource object is "shareable" instead of "unshareable".
Problem conclusion
A check was added to ensure, that a correc "unshareable"
datasource object is returned.
Temporary fix
Temporary fix provided to customer. Internal test confirmed
the problem was resolved.
Comments
APAR information |
APAR number |
PQ83300 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-01-15 |
Closed date |
2004-01-23 |
Last modified date |
2005-05-04 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|