Or look into why your processor is hanging. Camel tries to gracefully shutdown so it wont kill exchanges in process until the timeout occurs. So 90% of "my context doesnt shutdown forever" are issues in your route where exchanges are hanging up. Turn on tracer and look into your processor to see what is going on.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* On Mon, Dec 16, 2013 at 1:41 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Then set a low timeout value so the route is stopped quicker and > forced being stopped. > > See details at > http://camel.apache.org/graceful-shutdown.html > > > On Sat, Dec 14, 2013 at 1:48 PM, srikanthsettivari > <srikanth.settiv...@gmail.com> wrote: > > Hi, > > I have configured the route, like > > > > from("jms:queue:queue1") > > .transacted() > > .process(new Processmyprocess()) > > .to("jms:queue:queue2"); > > > > At the time of processing the messages from queue1 to end queue2, if we > try > > to stop the route, it is not stopping, until all the messages reach to > the > > queue2. > > I am using camelContext.stopRoute(routeName), it is not working. > > I want to stop the route irrespective of processing the messages. The > route > > should stop immediately. > > > > Could you please any one help on this one? > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Unable-to-stop-the-route-tp5744772.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > Make your Camel applications look hawt, try: http://hawt.io >