Hi,
We are using the concurrent consumers to process route the route looks like
this.

 from("jms:queue:queue1 ? concurrentConsumers = 5 & maxConcurrentConsumers =
25 & maxMessagesPerTask=25") 
                        .transacted() 
                        .process(new Processmyprocess()) 
                       .to("jms:queue:queue2"); 


There are thousands of messages in side the queue1 to be processed, the
route is processing the messages from queue1 in between we  are trying to
stop the route using different parameters like:

camelContext.stopRoute(routeId, 5 , TimeUnit.MILLISECONDS, false);

We are unable to stop the route,.

One objervations is
We are able to stop the route , when queue1 is empty.

Could you please any other solution which will fit in to our code ( we are
using camel version 2.9.2)




--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-stop-the-route-tp5744772p5744916.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to