<div dir="ltr"><div><div><div><div><div><div>Hi guys,<br><br></div>I wonder if there is somebody to help me with this issue[1]?<br><br></div>Issue:<br></div>Any call leaving EJB is checked if there is no active transaction[2]. WFLY code communicate with WFTC which maintains its own notion about active transactions (and Narayana code maintains its own too).</div><div>If there is a transaction imported from incoming WS call (XTS trasaction) then Narayana code suspends transactions at its side before EJB checker is called. But in case of WFTC the notion about the transaction status is untouched. Thus EJB checker then throws exceptions.<br><br></div>Solution:<br></div>I&#39;m thinking to create a new WS handler which would suspend the WFTC transaction similar how Narayana code does so[3]. But I need to add a new WS handler as dependency to the app deployment for that works[4]. Thus I would need a special WFLY module containing the handler, depending on WFTC, Narayana, XTS and WS modules.<br></div><div><br></div><div>There is no such module having that kind of dependencies currently. Creating a special module for single java class sounds me wrong.<br></div><div><br></div><div>Would have somebody an idea of handling this type of situation?</div><div>I would think is there some option to create a dynamic module programmatically to register the WS handler? I was checking about options to register WS handler in instance but that seems not possible in WFLY integration code.</div><div><br></div><div>Thank you for any thought</div><div>Ondra<br></div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br><br>[1] <a href="https://issues.jboss.org/browse/WFLY-9455">https://issues.jboss.org/browse/WFLY-9455</a>: Unable to roll back active transaction thrown for EJB bridge transactions</div><div>[2] <a href="https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/deployment/TransactionRollbackSetupAction.java#L134" class="external-link" rel="nofollow" title="Follow link">https://github.com/wildfly/wildfly/blob/master/transactions/src/main/java/org/jboss/as/txn/deployment/TransactionRollbackSetupAction.java#L134</a></div><div>[3] <a href="https://github.com/jbosstm/narayana/blob/master/txbridge/src/main/java/org/jboss/jbossts/txbridge/inbound/JaxWSTxInboundBridgeHandler.java#L118" class="external-link" rel="nofollow" title="Follow link">https://github.com/jbosstm/narayana/blob/master/txbridge/src/main/java/org/jboss/jbossts/txbridge/inbound/JaxWSTxInboundBridgeHandler.java#L118</a></div><div>[4] <a href="https://github.com/wildfly/wildfly/blob/master/xts/src/main/java/org/jboss/as/xts/XTSDependenciesDeploymentProcessor.java#L116">https://github.com/wildfly/wildfly/blob/master/xts/src/main/java/org/jboss/as/xts/XTSDependenciesDeploymentProcessor.java#L116</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>