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.
