title: JmsTemplate has no send timeout
body: <p>I have working <strong>JMS application</strong> with <strong>IBM MQ jars</strong> configuration , using <strong>spring</strong> </p>
  
  <p>It works well with correct queue information , but when i give wrong queue information </p>
  
  <p>it is hung at </p>
  
  <pre><code>LOG.info("SENDING MESSAGE");
  jmsTemplate.send(this.getDestination(), messageCreator );  //here
  </code></pre>
  
  <p>I have my Log saying sending message , i am handling org.springframework.jmsexception , but it does not throw.....i think it is hung at that point.</p>
  
  <p>I am not able to find any property for jmstemplate for send timeout , only for recieve timeout is there...</p>
  
  <p>Here is <strong>jmstemplate conf</strong> in <strong>app-context.xml (Spring)</strong></p>
  
  <pre><code>&lt;bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate102"&gt;
          &lt;property name="connectionFactory"&gt;
              &lt;ref bean="jmsQueueConnectionFactory" /&gt;
          &lt;/property&gt;
          &lt;property name="destinationResolver"&gt;
              &lt;ref bean="jmsDestinationResolver" /&gt;
          &lt;/property&gt;
          &lt;property name="pubSubDomain"&gt;
              &lt;value&gt;false&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="receiveTimeout"&gt;
              &lt;value&gt;20000&lt;/value&gt;
  
          &lt;/property&gt;
  </code></pre>
  
  <p>and <strong>ibm mq conf</strong> -</p>
  
  <pre><code>&lt;bean id="mqConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory"&gt;
          &lt;property name="hostName"&gt;
              &lt;value&gt;${queue_hostname}&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="port"&gt;
              &lt;value&gt;${queue_port}&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="queueManager"&gt;
              &lt;value&gt;${queue_manager}&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="channel"&gt;
              &lt;value&gt;${queue_channel}&lt;/value&gt;
          &lt;/property&gt;
          &lt;property name="transportType"&gt;
              &lt;value&gt;1&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I have set it to Auto-acknowledge</p>
  
  <pre><code>this.jmsTemplate.setSessionAcknowledgeMode(Session.AUTO_ACKNOWLEDGE);
  </code></pre>
  
  <p>So please tell me how to have timeout on sending message to throw <strong>jmsexception</strong>.</p>