setConnectionFactory(connectionFactory);
}
@Override
protected org.apache.activemq.jms.pool.ConnectionPool createConnectionPool(Connection connection) {
return new XaConnectionPool(connection, getTransactionManager()) {
@Override
protected Session makeSession(SessionKey key) throws JMSException {
if (connection instanceof XAConnection) {
return ((XAConnection)connection).createXASession();