-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.2.0.GA
-
None
We have a resource adapter where we call an endpoint (a MessageInflowLocalProxy) twice from two different transactions. This caused the endpoint to fail in endTransaction with
Current transaction TransactionImple < ac, BasicAction: -3f57fcde:b392:473d5904:ab status: ActionStatus.RUNNING > is not the expected transaction
We tracked this problem down to the member variable "transaction" in MessageInflowLocalProxy.java, which is not set to null in endTransaction. When the endpoint is called again during a transaction, startTransaction will leave it alone, making transaction point to the old one.
Suggested fix: Set transaction=null at end of transaction
- is blocked by
-
EJBTHREE-1142 MessageInflowLocalProxy is retaining previous transaction
- Closed
- relates to
-
JBPAPP-1863 Calling a message endpoint twice from different transactions makes MessageInflowLocalProxy confuse the two transactions, which causes an MDB to have a transaction that is already in flight.
- Closed