Hi Pedro,

> The code of the route is provided in the configure() method,

But you got only single route configured there :) .

from(xmpp).filter(...).process(...).to("esper");

So the whole route will be executed in the single thread i.e. the same
thread will pick the message from XMPP client and send it to Esper.

If this is the problem, then you can break the processing of the route
into two asynchronous parts with the Threads [1] DSL, just as
demonstrated on the snippet below.

from(xmpp).threads(10).filter(...).process(...).to("esper");

If Threads DSL is used, XMPP won't wait until message has been
delivered to Esper, but instead will continue to consume the messages.

Cheers.

[1] http://camel.apache.org/async.html

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to