title: jms create connection http timeout - weblogic
body: <p>Is there a way to specify a JMS HTTP Connection timeout for a WebLogic JMS producer?</p>
  
  <p>I am asking this because I use Weblogic JMS with Spring JMS Template to send messages to a queue and I have the following scenario:</p>
  
  <ol>
  <li>JMS server is up</li>
  <li>I start the producer app and it is able to send messages to the queue</li>
  <li>I stop the JMS server</li>
  <li>The app tries to send a message to the queue, but it gets a ConnectionRefused exception after about 1 minute and 30 seconds</li>
  </ol>
  
  <p>So I guess this timeout is actually the default http connection timeout at JVM level and I wouldn't want to set the below properties:</p>
  
  <pre><code>-Dsun.net.client.defaultConnectTimeout=30000
  -Dsun.net.client.defaultReadTimeout=30000
  </code></pre>