title: JMS from Synchronous to Asynchronous
body: <p>I was able to create a Synchronous service bus using the JMS, but I was not able to turn it to Asynchronous.
  I'm trying to post a request to a service asynchronously, so if the service is down, I want the JMS queue keeps the request message and when the service starts up it delivers the message to the service and get back the response.</p>
  
  <p>here is my code </p>
  
  <pre><code>&lt;camelContext xmlns="http://camel.apache.org/schema/spring"&gt;
          &lt;route &gt;
              &lt;from id ="server" uri="jetty:http://0.0.0.0:9500/rsb/toService?matchOnUriPrefix=true&amp;amp;enableMultipartFilter=false&amp;amp;disableStreamCache=false"/&gt;
              &lt;wireTap uri="log:test?level=INFO"&gt;&lt;body&gt;&lt;simple&gt;Enter JMS test route and sending message to queue&lt;/simple&gt;&lt;/body&gt;&lt;/wireTap&gt;
              &lt;!--&lt;to uri="direct:queue"/&gt;--&gt;
              &lt;to uri="jms://testqueue?requestTimeout=360000&amp;amp;replyTo=bar&amp;amp;replyToDeliveryPersistent=true&amp;amp;exchangePattern=InOut&amp;amp;acknowledgementModeName=AUTO_ACKNOWLEDGE"/&gt;
          &lt;/route&gt;
          &lt;route id="testqueuelistener" streamCache="true"&gt;
              &lt;from uri="jms://testqueue?replyToDeliveryPersistent=true&amp;amp;replyTo=bar" /&gt;
              &lt;wireTap uri="log:test?level=INFO"&gt;&lt;body&gt;&lt;simple&gt;Message recieved from queue: ${body}&lt;/simple&gt;&lt;/body&gt;&lt;/wireTap&gt;             
              &lt;to uri="http://localhost:18402/Home/addUser?bridgeEndpoint=true&amp;amp;throwExceptionOnFailure=false"/&gt;
              &lt;to uri="jms:service"/&gt; 
          &lt;/route&gt;
          &lt;route &gt;
              &lt;from uri="jms:service"/&gt;
              &lt;transform&gt;
                  &lt;simple&gt;${body}&lt;/simple&gt;
              &lt;/transform&gt;
          &lt;/route&gt;
      &lt;/camelContext&gt;
  </code></pre>