return new PooledConnection(connection);
}
@Override
protected org.apache.activemq.jms.pool.ConnectionPool createConnectionPool(Connection connection) {
return new ConnectionPool(connection) {
@Override
protected Connection wrap(final Connection connection) {
// Add a transport Listener so that we can notice if this connection
// should be expired due to a connection failure.