title: Spring Integration - setting dynamic queue name
body: <p>I create dynamic queue based on the job instance id. For request queue, I am able to override xml config &amp; set the queue name as <code>jmsTemplateRequest.setDefaultDestination(jobid)</code> in java code for xml config mentioned as below.
   For response queue, I want a solution. Cause I am not able to set <code>jms-template</code> attribute for <code>jms:inbound-channel-adapter</code> programmatically.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;int-jms:outbound-channel-adapter channel="RequestsChannel" jms-template="jmsTemplateRequest"/&gt;
  &lt;bean id="RequestQueue" class="org.apache.activemq.command.ActiveMQQueue"&gt;
      &lt;constructor-arg value="RequestsQueue" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="jmsTemplateRequest" class="org.springframework.jms.core.JmsTemplate"&gt;
      &lt;property name="connectionFactory" ref="connectionFactory"/&gt;
      &lt;property name="receiveTimeout" value="5000" /&gt;
      &lt;property name="defaultDestination" ref="RequestQueue"/&gt;
  
      &lt;!-- OTHERWISE how can I modify queue name in below code in java by autowiring? --&gt;
       &lt;int-jms:message-driven-channel-adapter connection-factory="connectionFactory"
                                          channel="ReplyChannel"
                                          destination-name="ReplyQueue"/&gt;
  </code></pre>