/** * Simply create a session with an XA connection if there is no active transaction. Or create a proxied session and register * it with an active transaction. * * @see SessionProxy * @see Connection#createSession(boolean, int) */ @Override public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { if (transactionHelper.isTransactionAvailable()) { return createAndRegisterSession(); } return xaConnection.createSession(transacted, acknowledgeMode); }
/** * Simply create a session with an XA connection if there is no active transaction. Or create a proxied session and register * it with an active transaction. * * @see SessionProxy * @see Connection#createSession(boolean, int) */ @Override public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { if (transactionHelper.isTransactionAvailable()) { return createAndRegisterSession(); } return xaConnection.createSession(transacted, acknowledgeMode); }
/** * Simply create a session with an XA connection if there is no active transaction. Or create a proxied session and register * it with an active transaction. * * @see SessionProxy * @see Connection#createSession(boolean, int) */ @Override public Session createSession(boolean transacted, int acknowledgeMode) throws JMSException { if (transactionHelper.isTransactionAvailable()) { return createAndRegisterSession(); } return xaConnection.createSession(transacted, acknowledgeMode); }