public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception { // the transaction may have already been started. if (xid.isXATransaction()) { XATransaction transaction = null; synchronized (xaTransactions) { transaction = xaTransactions.get(xid); if (transaction != null) { return; } transaction = new XATransaction(transactionStore, (XATransactionId)xid, this, context.getConnectionId()); xaTransactions.put(xid, transaction); } } else { Map<TransactionId, Transaction> transactionMap = context.getTransactions(); Transaction transaction = transactionMap.get(xid); if (transaction != null) { throw new JMSException("Transaction '" + xid + "' has already been started."); } transaction = new LocalTransaction(transactionStore, (LocalTransactionId)xid, context); transactionMap.put(xid, transaction); } }
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception { // the transaction may have already been started. if (xid.isXATransaction()) { XATransaction transaction = null; synchronized (xaTransactions) { transaction = xaTransactions.get(xid); if (transaction != null) { return; } transaction = new XATransaction(transactionStore, (XATransactionId)xid, this, context.getConnectionId()); xaTransactions.put(xid, transaction); } } else { Map<TransactionId, Transaction> transactionMap = context.getTransactions(); Transaction transaction = transactionMap.get(xid); if (transaction != null) { throw new JMSException("Transaction '" + xid + "' has already been started."); } transaction = new LocalTransaction(transactionStore, (LocalTransactionId)xid, context); transactionMap.put(xid, transaction); } }
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception { // the transaction may have already been started. if (xid.isXATransaction()) { XATransaction transaction = null; synchronized (xaTransactions) { transaction = xaTransactions.get(xid); if (transaction != null) { return; } transaction = new XATransaction(transactionStore, (XATransactionId)xid, this, context.getConnectionId()); xaTransactions.put(xid, transaction); } } else { Map<TransactionId, Transaction> transactionMap = context.getTransactions(); Transaction transaction = transactionMap.get(xid); if (transaction != null) { throw new JMSException("Transaction '" + xid + "' has already been started."); } transaction = new LocalTransaction(transactionStore, (LocalTransactionId)xid, context); transactionMap.put(xid, transaction); } }
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception { // the transaction may have already been started. if (xid.isXATransaction()) { XATransaction transaction = null; synchronized (xaTransactions) { transaction = xaTransactions.get(xid); if (transaction != null) { return; } transaction = new XATransaction(transactionStore, (XATransactionId)xid, this, context.getConnectionId()); xaTransactions.put(xid, transaction); } } else { Map<TransactionId, Transaction> transactionMap = context.getTransactions(); Transaction transaction = transactionMap.get(xid); if (transaction != null) { throw new JMSException("Transaction '" + xid + "' has already been started."); } transaction = new LocalTransaction(transactionStore, (LocalTransactionId)xid, context); transactionMap.put(xid, transaction); } }
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception { // the transaction may have already been started. if (xid.isXATransaction()) { XATransaction transaction = null; synchronized (xaTransactions) { transaction = xaTransactions.get(xid); if (transaction != null) { return; } transaction = new XATransaction(transactionStore, (XATransactionId)xid, this, context.getConnectionId()); xaTransactions.put(xid, transaction); } } else { Map<TransactionId, Transaction> transactionMap = context.getTransactions(); Transaction transaction = transactionMap.get(xid); if (transaction != null) { throw new JMSException("Transaction '" + xid + "' has already been started."); } transaction = new LocalTransaction(transactionStore, (LocalTransactionId)xid, context); transactionMap.put(xid, transaction); } }