[jboss-jira] [JBoss JIRA] (WFLY-7207) Integration with transactions during the graceful shutdown

Gytis Trikleris (JIRA) issues at jboss.org
Wed Sep 28 06:48:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-7207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13299564#comment-13299564 ] 

Gytis Trikleris commented on WFLY-7207:
---------------------------------------

Transaction availability can be checked by using ExtendedJBossXATerminator [1]. Currently it's not convenient to access it. You need to inject WildFly service for JBossXATerminator [2] and then cast it. But that should be enough at least for testing in your part.
I will add a new service ASAP to directly inject ExtendedJBossXATerminator. But it might take some time to be merged.

[1] https://github.com/jbosstm/jboss-transaction-spi/blob/master/src/main/java/org/jboss/tm/ExtendedJBossXATerminator.java#L67 
[2] https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/service/TxnServices.java#L40

> Integration with transactions during the graceful shutdown
> ----------------------------------------------------------
>
>                 Key: WFLY-7207
>                 URL: https://issues.jboss.org/browse/WFLY-7207
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: EJB
>            Reporter: Gytis Trikleris
>            Assignee: David Lloyd
>            Priority: Critical
>             Fix For: 11.0.0.Alpha1
>
>
> During the graceful shutdown EJB subsystem should consult Transactions subsystem whether the requests should be rejected or not. Transaction subsystem would check for availability of JTA or JTS transaction and return the outcome.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list