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/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.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)