title: Asynchronous send to a queue using Spring Jms issue
body: <p>I have a requirement when I need to write asynchronously to a queue in activemq. I am using Spring Jms to do it. This is the wiring in my spring context file</p>
  
  <pre><code>&lt;bean id="amqProducerConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
          &lt;property name="brokerURL" value="${activemq.broker}"/&gt;        
      &lt;/bean&gt;
  
      &lt;bean id="pooledProducerConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop" lazy-init="true"&gt;
          &lt;property name="connectionFactory" ref="amqProducerConnectionFactory" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
          &lt;property name="connectionFactory" ref="pooledProducerConnectionFactory" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>And in my code...i do..</p>
  
  <pre><code>void sendMessage(JmsTemplate jmsTemplate, String message, String requestQueue) {
          def messageCreator = { session -&gt;
              session.createTextMessage(message)
          } as MessageCreator
  
          jmsTemplate.send(requestQueue, messageCreator)
      }
  </code></pre>
  
  <p>But the above seems to be working synchronously, not asynchrously. Is there anything that I need to add here that makes the process asynchronous(I mean, App 'A' writes to a queue. It should write to the queue and forget, not wait until App 'B' picks it up from the queue and processes it.)</p>