afterCommitRollback() doesn't work properly for JTATransaction

Description

Problem arises when transaction completes successfully.
Then some afterInsert, afterUpdate and release methods of CacheConcurrencyStrategy should be executed.
But Hibernate thinks that transaction failed and executes only release methods.
I've noticed that this is becaouse of condition in method
JTATransaction.afterCommitRollback() in line:
"session.afterTransactionCompletion(status==Status.STATUS_COMMITTED);"
It seems that after succesful transaction completion status is Status.STATUS_NO_TRANSACTION.
When I've changed this line to:
session.afterTransactionCompletion(status==Status.STATUS_COMMITTED || status == Status.STATUS_NO_TRANSACTION);
everything seems to work OK.

Environment

JBoss 3.2.5, Hibernate 2.1.8, Oracle 9

Status

Assignee

Unassigned

Reporter

Lukasz Michonski

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure