Note that there are some explanatory texts on larger screens.

plurals
  1. POApache Camel VM queue between servlets
    primarykey
    data
    text
    <p>I'm trying to setup simple VM queue test between two servlets without success. The problem is that the request always timeouts as there is no response, OUT message, within expected timeframe.</p> <p>"org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis."</p> <p>The servlets are running in Tomcat and are both deploying Apache Camel. Both apps are defining camel context and simple routes. The basic setup should be fine as simple routes like following are working:</p> <pre><code>&lt;route&gt; &lt;from uri="servlet:///hello?servletName=app1" /&gt; &lt;transform&gt; &lt;simple&gt;Hello world&lt;/simple&gt; &lt;/transform&gt; &lt;/route&gt; &lt;route&gt; &lt;from uri="servlet:///hello?servletName=app2" /&gt; &lt;transform&gt; &lt;simple&gt;Hello world&lt;/simple&gt; &lt;/transform&gt; &lt;/route&gt; </code></pre> <p>First of all I'm not sure if the message ever reaches the app2 as the same timout happens even if the requested route wouldn't be even defined (the app2 would be missing the VM route). So the problem could be in how to define the route between two servlets using VM queue.</p> <p>If the route between the servlets is fine then the problem should be in the missing/incorrect reply. I do understand that the receiving end should return the reply as the incoming requst from web server is inOut type, but I don't know how to achieve that.</p> <p>The route in app1 receiving the web request:</p> <pre><code>&lt;route&gt; &lt;from uri="servlet:///test?servletName=app1" /&gt; &lt;to uri="vm:test"&gt; &lt;/route&gt; </code></pre> <p>and the other end in servlet app2:</p> <pre><code>&lt;route&gt; &lt;from uri="vm:test" /&gt; // Tested here: output with &lt;simple&gt;, 'To', 'inOut'... the result is always timeout &lt;/route&gt; </code></pre> <p>As I'm new with Apache Camel the root cause is most likely very simple. Any help would be highly appreciated.</p> <p>The question is simply, how to setup VM queue between two servlet apps?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload