@Bean(destroyMethod = "destroy")
 public DefaultMessageListenerContainer jmsContainer() {
   final DefaultMessageListenerContainer jmsContainer = new DefaultMessageListenerContainer();
   jmsContainer.setDestination(destination());
   jmsContainer.setConnectionFactory(amqConnectionFactory());
   jmsContainer.setMessageListener(messageListener());
   jmsContainer.setConcurrency("5-10");
   jmsContainer.setReceiveTimeout(5000);
   jmsContainer.afterPropertiesSet();
   return jmsContainer;
 }
 @Bean
 public AbstractMessageListenerContainer messageListenerContainer() {
   DefaultMessageListenerContainer defaultMessageListenerContainer =
       new DefaultMessageListenerContainer();
   defaultMessageListenerContainer.setSessionTransacted(true);
   defaultMessageListenerContainer.setConnectionFactory(jmsConfiguration.connectionFactory());
   defaultMessageListenerContainer.setDestination(jmsConfiguration.eventProcessorDestination());
   defaultMessageListenerContainer.setMessageSelector(
       String.format("%s = '%s'", eventTypeHeaderName, TimedAction.empty().getTypeId()));
   defaultMessageListenerContainer.setConcurrency(concurrency);
   return defaultMessageListenerContainer;
 }