I just got this problem and found the solution with this line : 

Camelcontext.stopRoute(routeId, 1, TimeUnit.SECONDS, false);

You want false to force the shutdown and you need 1 to prevent the following
problem : 

[org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still
3 inflight and pending exchanges to complete, timeout in -1 seconds.
[org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still
3 inflight and pending exchanges to complete, timeout in -2 seconds.
[org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still
3 inflight and pending exchanges to complete, timeout in -3 seconds.

Creating a JIRA ticket now...




--
View this message in context: 
http://camel.465427.n5.nabble.com/Forcefully-shutting-down-routes-tp5722447p5732125.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to