[jbossts-issues] [JBoss JIRA] (JBTM-2278) Allow the transaction manager suspend operation to succeed for JTS mode
Tom Jenkinson (JIRA)
issues at jboss.org
Tue Oct 28 06:50:36 EDT 2014
Tom Jenkinson created JBTM-2278:
-----------------------------------
Summary: Allow the transaction manager suspend operation to succeed for JTS mode
Key: JBTM-2278
URL: https://issues.jboss.org/browse/JBTM-2278
Project: JBoss Transaction Manager
Issue Type: Enhancement
Components: JTS
Reporter: Tom Jenkinson
Assignee: Tom Jenkinson
Fix For: 5.0.4
It is not possible to perform TransactionManager::suspend operation during an afterCompletion call when the server is configured for JTS and has JacORB configured with interposition interceptors. This is because the transaction has not been used on the thread yet and when OTSManager.current() operation finds the PropagationContext in PICurrent to tries to recreate the hierarchy and ArjunaTransactionImple register_resource detects the transaction is no longer active so throws an Inactive exception causing suspend to fail.
SystemException is a valid response code from suspend but it would be desirable to try to avoid this when the transaction is local to the Synchronization.
Allowing suspend means this code would work:
public afterCompletion(status) {
tm.suspend()
tm.begin()
tm.commit()
}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jbossts-issues
mailing list