@Bean public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(ConnectionFactory jmsConnectionFactory){
  DefaultJmsListenerContainerFactory factory=new DefaultJmsListenerContainerFactory();
  factory.setConnectionFactory(jmsConnectionFactory);
  factory.setDestinationResolver(herdDestinationResolver);
  factory.setConcurrency(configurationHelper.getProperty(ConfigurationValue.JMS_LISTENER_POOL_CONCURRENCY_LIMITS));
  return factory;
}

@ Bean public DefaultJmsListenerContainerFactory jmsListenerContainerFactory ( ConnectionFactory jmsConnectionFactory ) { DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory ( ) ; factory . setConnectionFactory ( jmsConnectionFactory ) ; factory . setDestinationResolver ( herdDestinationResolver ) ; factory . setConcurrency ( configurationHelper . getProperty ( ConfigurationValue . JMS_LISTENER_POOL_CONCURRENCY_LIMITS ) ) ; return factory ; }
gets a jms listener container factory that can return a jms listener container .
