camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajesh_h <>
Subject CamelContext resume does not reactivate the route
Date Sat, 09 Mar 2013 01:23:40 GMT
Hello experts,

I have a route consuming from file endpoint and then other routes chained
downstream using direct:.

When I get a particular kind of exception, I want to be able to suspend the
CamelContext (camelContext.suspend). And then be able to resume the Context
from JMX. 

Now, what happens is that as soon as I issue "suspend context" from the
code, it goes through the defaultShutDownStrategy and logs these messages
for 300 seconds (expected).

org.apache.camel.impl.DefaultShutdownStrategy$ Waiting
as there are still 5 inflight and pending exchanges to complete, timeout in
43 seconds.*

Not sure why the 5 inflight exchanges are not getting flushed out, but
eventually, times out and suspends the route.
*org.apache.camel.impl.DefaultShutdownStrategy.doShutdown.191 Timeout
occurred. Now forcing the routes to be shutdown now.
Interrupted while waiting during graceful shutdown, will force shutdown
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
*route-psp1* suspend complete, was consuming from:*
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
route-psp2 suspend complete, was consuming from: Endpoint[direct://csv]
org.apache.camel.impl.DefaultShutdownStrategy.doShutdown.213 Graceful
shutdown of 6 routes completed in 300 seconds
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
route-psp3 suspend complete, was consuming from:
org.apache.camel.impl.DefaultCamelContext.doSuspend.1353 Apache Camel 2.10.3
(CamelContext: rdlCamelContext) is suspended in 5 minutes
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
route-psp4 suspend complete, was consuming from: Endpoint[direct://update]
com.paypal.demandgen.rdl.RdlContextController.suspend.33 Context suspended
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
route-psp5 suspend complete, was consuming from:
org.apache.camel.impl.DefaultShutdownStrategy$ Route:
route-psp6 suspend complete, was consuming from:

Even after I resume the context using JMX, my route-psp1 refuses to pick up
files from the input endpoint location.

Can somebody advice me as to what I am doing wrong? I am using Camel 2.10.3.

Thanks in advance

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message