I have started using `Spring-integration` for listening on JMS-queues, and it's working satisfactory, but I have somewhat of an issue with the amount of xml-configuration required in order to set up a listener. Most of this is boilerplate, what changes is really just the jms-instance and the name of the queue to listen to, and the class and method to invoke upon receiving a message. Here is an example:

```
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:int="http://www.springframework.org/schema/integration"
       xmlns:jms="http://www.springframework.org/schema/integration/jms"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
                           http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd">
  <bean id="jms.queue.myQueue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="${myApplication.jms.queue.myQueue}" />
  </bean>
  <bean id="jms.container.myJMSListender"
        class="org.springframework.jms.listener.DefaultMessageListenerContainer"
        destroy-method="destroy">
    <property name="connectionFactory"
              ref="jmsConnectionFactory" /> <!-- Defined elsewhere -->
    <property name="destination"
              ref="jms.queue.myQueue" />
    <property name="sessionTransacted"
              value="true" />
  </bean>

  <int:publish-subscribe-channel id="channel.myQueue" />

  <jms:message-driven-channel-adapter id="channelAdapter.myQueue"
                                      container="jms.container.myQueue"
                                      channel="channel.myQueue"
                                      acknowledge="transacted"/>

  <int:service-activator id="serviceActivator.myQueue"
                         input-channel="channgel.myQueue"
                         ref="myQueueJMSListener"
                         method="handleMessage" />
</beans>

```

As you can see, a lot of config for something fairly simple, and with quite a lot of JMS-listeners this becomes tedious, both to read and write.

Is there a way to configure listening to a queue with Spring-integration that requires less boilerplate? I've looked into creating my own XML-tag, but I'm kinda hoping that there is a simpler solution.