[jbossts-issues] [JBoss JIRA] (JBTM-2278) Allow the transaction manager suspend operation to succeed for JTS mode

Tom Jenkinson (JIRA) issues at jboss.org
Wed Nov 12 06:29:29 EST 2014


     [ https://issues.jboss.org/browse/JBTM-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson updated JBTM-2278:
--------------------------------
        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done


> 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.8#6338)


More information about the jbossts-issues mailing list