public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); return new ActiveMQXASession(this, getNextSessionId(), getAckMode(), isDispatchAsync()); }
public XAResource getXAResource() { return getTransactionContext(); }
public void rollback() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot rollback() inside an XASession"); }
public boolean getTransacted() throws JMSException { checkClosed(); return getTransactionContext().isInXATransaction(); }
public boolean getTransacted() throws JMSException { checkClosed(); return getTransactionContext().isInXATransaction(); }
public boolean getTransacted() throws JMSException { checkClosed(); return getTransactionContext().isInXATransaction(); }
protected void doStartTransaction() throws JMSException { if (acknowledgementMode != SESSION_TRANSACTED) { // ok once the factory XaAckMode has been explicitly set to allow use outside an XA tx } else if (!getTransactionContext().isInXATransaction()) { throw new JMSException("Session's XAResource has not been enlisted in a distributed transaction."); } }
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); return new ActiveMQXASession(this, getNextSessionId(), Session.SESSION_TRANSACTED, isDispatchAsync()); } }
public void commit() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot commit() inside an XASession"); }
public XAResource getXAResource() { return getTransactionContext(); }
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); return new ActiveMQXASession(this, getNextSessionId(), getAckMode(), isDispatchAsync()); }
public void commit() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot commit() inside an XASession"); }
public XAResource getXAResource() { return getTransactionContext(); }
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); return new ActiveMQXASession(this, getNextSessionId(), getAckMode(), isDispatchAsync()); }
public void commit() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot commit() inside an XASession"); }
public XAResource getXAResource() { return getTransactionContext(); }
public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); return new ActiveMQXASession(this, getNextSessionId(), getAckMode(), isDispatchAsync()); }
public void rollback() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot rollback() inside an XASession"); }
public XAResource getXAResource() { return getTransactionContext(); }
public void rollback() throws JMSException { checkClosed(); throw new TransactionInProgressException("Cannot rollback() inside an XASession"); }