private String getGroupName() { ClientTransactionManagerService transactionManager = getContext().getTransactionManager(); return transactionManager.getGroupName(); }
private TransactionContext createTransactionContext(Xid xid) { if (getContext().getConnectionManager().getOwnerConnection() == null) { throw new TransactionException("Owner connection needs to be present to begin a transaction"); } ClientTransactionManagerService transactionManager = getContext().getTransactionManager(); TransactionContext context = transactionManager.newXATransactionContext(xid, timeoutInSeconds.get()); getTransaction(context).begin(); return context; }
private TransactionContext createTransactionContext(Xid xid) { if (getContext().getConnectionManager().getOwnerConnection() == null) { throw new TransactionException("Owner connection needs to be present to begin a transaction"); } ClientTransactionManagerService transactionManager = getContext().getTransactionManager(); TransactionContext context = transactionManager.newXATransactionContext(xid, timeoutInSeconds.get()); getTransaction(context).begin(); return context; }
private String getGroupName() { ClientTransactionManagerService transactionManager = getContext().getTransactionManager(); return transactionManager.getGroupName(); }