Hi

Maybe you can enable parallel on the consumer side. For example on JMS
you can use concurrentConsumers=10 etc.

Camel in Action book chapter 10 covers concurrency and scalability.


On Tue, Nov 2, 2010 at 12:12 PM, hiba <[email protected]> wrote:
>
> Hi,
>
> I wanted to include parallel processing of messages in camel.
> So i introduced my custom class which creates 3 routes of same kind (having
> same beans and final endpoint) and which puts the messages in one of the
> three routes using round-robin pattern(my algorithm).
>
> My expectation would be to increase the performance of my project. But its
> the other side. The performance is even lower than that of single route.
> I have not used any synchronizaion or waiting in my code. It is just pure
> java code.
>
> Can you pleae tell me how camel behaves with my custom defiend parallel
> processing.
>
> The below is the view of my route.
> String routeName = "direct:route1";
>  from(routeName).bean(MyHandler.class, "handle").bean(MyMsgCollector.class,
> "collectMessage").bean(MyTranslator.class.class, "translateMessage");
>
> in the next route, my final endpoint and beans are the same but initial
> endpoint differs
> String routeName = "direct:route2";
>  from(routeName).bean(MyHandler.class, "handle").bean(MyMsgCollector.class,
> "collectMessage").bean(MyTranslator.class.class, "translateMessage");
>
> in the third route, my final endpoint and beans are the same but initial
> endpoint differs
> String routeName = "direct:route3";
>  from(routeName).bean(MyHandler.class, "handle").bean(MyMsgCollector.class,
> "collectMessage").bean(MyTranslator.class.class, "translateMessage");
>
> Note i have a single routeBuilder class and i pass route names to the
> constructor.
>
> I choose the route depending on my custom defiend algorithm(round-robin
> pattern) and put messages into it.
> So now the messages should be parallelly processed.
>
> Hope i made myself clear. :)
>
> Thanks In Advance
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/parallel-processing-tp3246530p3246530.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to