interconnect/core/src/main/java/de/taimos/dvalin/interconnect/core/ActiveMQPooledConnectionFactory.java
/**
     * @param connectionFactory a connection factory
     * @return initialized connection pool
     */
@param connectionFactory a connection factory
@return initialized connection pool
@param connectionFactory a connection factory @return initialized connection pool
public ActiveMQPooledConnectionFactory initDefault(ConnectionFactory connectionFactory) {
        try {
            this.setConnectionFactory(connectionFactory);
            this.setCreateConnectionOnStartup(true);
            this.setIdleTimeout(0);
            this.setMaxConnections(3);
            this.setMaximumActiveSessionPerConnection(100);
            this.setTimeBetweenExpirationCheckMillis(30000);
            this.setBlockIfSessionPoolIsFull(false);
            this.start();
        } catch (Exception e) {
            ActiveMQPooledConnectionFactory.LOGGER.error("Failed to setup the message queues", e);
        }
        return this;
    }
public ActiveMQPooledConnectionFactory initDefault ( ConnectionFactory connectionFactory ) { try { this . setConnectionFactory ( connectionFactory ) ; this . setCreateConnectionOnStartup ( true ) ; this . setIdleTimeout ( 0 ) ; this . setMaxConnections ( 3 ) ; this . setMaximumActiveSessionPerConnection ( 100 ) ; this . setTimeBetweenExpirationCheckMillis ( 30000 ) ; this . setBlockIfSessionPoolIsFull ( false ) ; this . start ( ) ; } catch ( Exception e ) { ActiveMQPooledConnectionFactory . LOGGER . error ( "Failed to setup the message queues" , e ) ; } return this ; }
@param connectionFactory a connection factory
 @return initialized connection pool
@param connectionFactory a connection factory @return initialized connection pool
// start connection pool