APAR status
Closed as program error.
Error description
The EJBContainer is not designed to handle out-of-container
transaction changes. Therefore, the EJBContainer will
throw a javax.transaction.TransactionRolledbackException
to the client calling the EJB method instead of the
actual exception when TransactionControl.handleException
is used.
Local fix
Instead of using the TransactionControl.handleException()
method in a EJB Method that is configured as TX_REQUIRES
or TX_REQUIRES_NEW, use the EJBContext.setRollbackOnly()
method and the TransactionControl.postInvoke() method.
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server 5.0 users of *
* Lotus WorkPlace Mail and WebSphere *
* Application Server 5.0.1 and 5.0.2 users of *
* WebSphere Enterprise Scheduler. *
****************************************************************
* PROBLEM DESCRIPTION: The Extension Helper TransactionControl *
* interface was not notifying the *
* EJBContainer that it was marking *
* a transaction as rolled-back. The *
* EJBContainer would then incorrectly *
* throw a TransactionRolledbackException *
* instead of the correct user exception. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
Users calling Enterprise Java Beans ( EJB ) with TX_REQUIRES or
TX_REQUIRESNEW container transaction settings would not always
get the correct exception or return code from an EJB Method if
the TransactionControl API was used to mark the transaction as
rolled-back.
Problem conclusion
The TransactionControl API was changed to interact with the
EJBContainer so that it is notified when a transaction is marked
to rollback via the handleException() method.
Temporary fix
Apply the interim fix associated with APAR PQ77217.
Comments
APAR information |
APAR number |
PQ77217 |
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 |
2003-08-06 |
Closed date |
2003-08-07 |
Last modified date |
2003-08-07 |
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 |
|