title: Proper ultimate way to migrate JMS event listening to Spring Integration with Spring Boot
body: <p>I got a <code>JmsConfig</code> configuration class that handles JMS events from a topic in the following way:</p>
  
  <ul>
  <li>It defines a <code>@Bean ConnectionFactory</code>, containing an ActiveMQ implementation</li>
  <li>It defines a <code>@Bean JmsListenerContainerFactory</code> instantiating a <code>DefaultJmsListenerContainerFactory</code> and passing it through Boot's <code>DefaultJmsListenerContainerFactoryConfigurer</code></li>
  <li>It defines a <code>@Bean MessageConverter</code> containing a <code>MappingJackson2MessageConverter</code> and setting a custom <code>ObjectMapper</code></li>
  <li>I use <code>@JmsListener</code> annotation pointing to myfactory on a method of my service. This is the only use I have for the topic, subscription alone.</li>
  </ul>
  
  <p>Now I want to move to <strong>Spring Integration</strong>. After reading a lot, and provided I don't need a bidirectional use (discarding <em>Gateways</em>) neither a polling mechanism (discarding <em><code>@InboundChannelAdapter</code></em>), I am going for a <code>message-driven-channel-adapter</code>, in traditional XML configuration wording. I found that Java idiom should be accomplished by means of the new Spring Integration DSL library, and thus, I look for the proper snippet.</p>
  
  <p>It seems <code>JmsMessageDrivenChannelAdapter</code> is the proper equivalent, and I found a way:</p>
  
  <p><code>IntegrationFlows.from(Jms.messageDriverChannelAdapter(...))</code>  </p>
  
  <p>But the problem is that this only accepts the ActiveMQ ConnectionFactory or an <code>AbstractMessageListenerContainer</code>, but no my boot pre-configured <code>JmsListenerContainerFactory</code> !</p>
  
  <p>How should this be implemented in an ultimate way?</p>