I haven't looked at source code but looks like you don't want a "graceful 
shutdown" but rather a "kill" of the route (which can get complicated with 
transactions).

-----Original Message-----
From: Vishal Changrani [mailto:vishal.changr...@ericsson.com]
Sent: Saturday, November 10, 2012 12:57 AM
To: users@camel.apache.org
Subject: Forcefully shutting down routes...

Hi,

I am trying to shutdown a route by calling route.
Camelcontext.stopRoute(routeId, 0, TimeUnit.SECONDS, false / true); //tried 
both true and false

However the route continues to persist sometimes and I get the following 
messages..

DEBUG - Route: Publisher_21 suspended and shutdown deferred, was consuming 
from: 
Endpoint[timer://TIMER_FOR_PUBLISHER?daemon=true&fixedRate=true&period=60000]
INFO - Waiting as there are still 1 inflight and pending exchanges to complete, 
timeout in 0 seconds.
INFO - Waiting as there are still 1 inflight and pending exchanges to complete, 
timeout in -1 seconds.
......

(On the route orignally I had set .shutdownRoute(default);)

I understand that the route may indeed be busy processing messages but I really 
know what I am doing and want to force it to stop.

I read a few posts related to this issue but am still a little lost. I am 
running Camel 2.9.2 and is there no way that the route's process can be just 
interrupted ?

Thanks,
V



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful.

Reply via email to