-
Bug
-
Resolution: Done
-
Major
-
None
-
None
The EJB3 interceptor is not using client values for timeouts, this is a problem for users trying to use EJB for transaction propagation.
Refer to the code in https://github.com/wildfly/wildfly/blob/master/ejb3/src/main/java/org/jboss/as/ejb3/remote/EJBRemoteTransactionPropagatingInterceptor.java:
private void createOrResumeXidTransaction(final XidTransactionID xidTransactionID) throws Exception {
final TransactionManager transactionManager = this.ejbRemoteTransactionsRepository.getTransactionManager();
final Transaction alreadyCreatedTx = this.ejbRemoteTransactionsRepository.getImportedTransaction(xidTransactionID);
if (alreadyCreatedTx != null)
else
{ // begin a new tx and add it to the tx repository // TODO: Fix the tx timeout (which currently is passed as 300 seconds) final Transaction newSubOrdinateTx = this.ejbRemoteTransactionsRepository.importTransaction(xidTransactionID, 300); // associate this tx with the thread transactionManager.resume(newSubOrdinateTx); }}
- is duplicated by
-
WFLY-2852 JBoss 7 - EJB Remote Transaction Timeout
- Closed
- is related to
-
WFLY-5348 Propagate transaction timeout value for distributed transaction when using JTA and EJB remoting
- Closed
- relates to
-
JBEAP-4632 JTA does not set transaction timeout for XAResource for propagated transactions
- Closed