]
Ondra Chaloupka updated JBTM-2891:
----------------------------------
Summary: Default dependency on org.jboss.xts could be added to WFLY deployements when
deployment uses XTS interfaces (was: Default dependency on org.jboss.xts could be added
to WFLY deployements using XTS interfaces)
Default dependency on org.jboss.xts could be added to WFLY
deployements when deployment uses 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/jbos...
(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...
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/weba...).
It would be good to add implicit dependency in such cases for user does not need to
provide it on his own.