title: Spring Integration JMS DSL
body: <p>We have the below working configuration in XML and are trying to convert to DSL.  Not sure whether they are equivalent and also tried to do with inboundAdapter. However , am unable to figure out how to set concurrency related values there. Can someone please advise if they used either messageDrivenChannelAdapter or  inboundAdapter with these parameters in DSL?</p>
  
  <pre><code>&lt;jms:message-driven-channel-adapter 
  id="inputChannelAdapter" 
  channel="inputChannel" 
  destination-name="inboundQueueName"
  connection-factory="cachingConnectionFactory"
  acknowledge="transacted" 
  header-mapper="defaultJmsHeaderMapper"
  error-channel="errorChannel" 
  concurrent-consumers="10"  
  max-concurrent-consumers="20"/&gt;
  
  
  
  @Bean
  public IntegrationFlow jmsInboundFlow() {
      return IntegrationFlows
              .from(Jms.messageDrivenChannelAdapter(cachingConnectionFactory)
                      .configureListenerContainer(c -&gt; {
                          DefaultMessageListenerContainer container = c.get();
                          container.setSessionTransacted(true);
                          container.setSessionAcknowledgeModeName("");
                          container.setMaxConcurrentConsumers(30);
                          container.setConcurrentConsumers(20);
                      })
                      .destination(inboundQueueName).headerMapper(defaultJmsHeaderMapper)
                      .errorChannel("errorChannel"))
              .channel(MessageChannels.queue("inputChannel"))
              .get();
  }
  
  
  @Bean
  public IntegrationFlow jmsInboundFlow1() {
      return IntegrationFlows
              .from(Jms.inboundAdapter(cachingConnectionFactory)
                      .configureJmsTemplate(t -&gt;
                              t.deliveryPersistent(true).sessionTransacted(true).sessionAcknowledgeModeName(""))
                      .destination(inboundQueueName).headerMapper(defaultJmsHeaderMapper))
                      .channel(MessageChannels.queue("inputChannel"))
              .get();
  }
  </code></pre>