camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <>
Subject Re: How to improve efficiency with Camel?
Date Tue, 25 Feb 2014 14:56:32 GMT
Hi Pedro,

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

But you got only single route configured there :) .


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.


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



Henryk Konsek

View raw message