[jbossts-issues] [JBoss JIRA] (JBTM-2891) Default dependency on org.jboss.xts could be added to WFLY deployements using XTS interfaces

Ondra Chaloupka (JIRA) issues at jboss.org
Wed Apr 26 06:37:01 EDT 2017


Ondra Chaloupka created JBTM-2891:
-------------------------------------

             Summary: Default dependency on org.jboss.xts could be added to WFLY deployements using XTS interfaces
                 Key: JBTM-2891
                 URL: https://issues.jboss.org/browse/JBTM-2891
             Project: JBoss Transaction Manager
          Issue Type: Enhancement
          Components: XTS
    Affects Versions: 5.5.24.Final
            Reporter: Ondra Chaloupka
            Assignee: Ondra Chaloupka


WildFly currently adds default dependency for {{org.jboss.xts}} module when deployment defines some of the compensations annotation. Provided by {{XTSDependenciesDeploymentProcessor}} see https://github.com/wildfly/wildfly/blob/master/xts/src/main/java/org/jboss/as/xts/XTSDependenciesDeploymentProcessor.java#L58 (in fact XTS dependency is needed only when compensating framework works in distributed manner but it's absolutely ok by my point of view to add the dependency as it's currently done).

But if deployment uses just XTS interfaces and defines WS handlers in descriptor then user is forced to apply the dependency on its own.

E.g. eap quickstarts does so

https://github.com/wildfly/quickstart/blob/11.x/wsat-simple/src/main/java/org/jboss/as/quickstarts/wsat/simple/RestaurantParticipant.java#L33

It implements Durable2PCParticipant and the XTS transaction context processing is done by specifying the xts handler in descriptor (https://github.com/wildfly/quickstart/blob/11.x/wsat-simple/src/main/webapp/WEB-INF/classes/context-handlers.xml#L24).

It would be good to add implicit dependency in such cases for user does not need to provide it on his own.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbossts-issues mailing list