private TransactionContext createTransactionContext(Xid xid) { XAService xaService = getService(); TransactionContext context = xaService.newXATransactionContext(xid, null, timeoutInSeconds.get(), false); getTransaction(context).begin(); return context; }
private TransactionContext createTransactionContext(Xid xid) { XAService xaService = getService(); TransactionContext context = xaService.newXATransactionContext(xid, null, timeoutInSeconds.get(), false); getTransaction(context).begin(); return context; }
@Override protected Object call() throws Exception { XAService xaService = getService(getServiceName()); String ownerUuid = endpoint.getUuid(); TransactionContext context = xaService.newXATransactionContext(parameters.xid, ownerUuid, (int) parameters.timeout, true); TransactionAccessor.getTransaction(context).begin(); endpoint.setTransactionContext(context); return context.getTxnId(); }
@Override protected Object call() throws Exception { XAService xaService = getService(getServiceName()); String ownerUuid = endpoint.getUuid(); TransactionContext context = xaService.newXATransactionContext(parameters.xid, ownerUuid, (int) parameters.timeout, true); TransactionAccessor.getTransaction(context).begin(); endpoint.setTransactionContext(context); return context.getTxnId(); }
Transaction tx = txManagerService.newAllowedDuringPassiveStateTransaction(options); notifyBeforeStateChange(oldState, requestedState, isTransient); tx.begin(); try { String txnId = tx.getTxnId();
Transaction tx = txManagerService.newAllowedDuringPassiveStateTransaction(options); notifyBeforeStateChange(oldState, requestedState, isTransient); tx.begin(); try { String txnId = tx.getTxnId();