public ConnectionFactory getConnectionFactory() {
        if (connectionFactory == null) {
            try {
                connectionFactory = (ConnectionFactory) getContext().lookup(getConnectionFactoryName());
            } catch (NamingException e) {
                throw new IllegalStateException("Unable to create JMS connection factory", e);
            }
        }
        return connectionFactory;
    }
public ConnectionFactory getConnectionFactory ( ) { if ( connectionFactory == null ) { try { connectionFactory = ( ConnectionFactory ) getContext ( ) . lookup ( getConnectionFactoryName ( ) ) ; } catch ( NamingException e ) { throw new IllegalStateException ( "Unable to create JMS connection factory" , e ) ; } } return connectionFactory ; }
@return connection factory
@see JmsServiceBuilder#connectionFactory