camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vishal1981 <>
Subject Re: Forcefully shutting down routes...
Date Mon, 12 Nov 2012 00:30:58 GMT
Thanks for all your replies so far.
Allow me to explain you my use case a little more in detail...
As part of my route I am using the EJB endpoint. All that the EJB does is
that it calls a stored procedure. The stored procedure takes a long time to
execute (in the order of two to three hours). My routes are created and
destroyed via a UI. Most of the time the routes will remain un-change once
defined by the user. However there could be cases where the user wants to
change the route. In this case I currently stop the route, remove the route
and then re-create a route based on his new definition.

Now, because of the long stored proc and for the fact that EJB component is
not shutdownaware I keep seeing those messages - "Waiting as there are still
1 inflight and pending exchanges to complete, timeout in -49 seconds." till
the whole stored proc finishes.

In such cases I want to just stop the stored proc and the endpoint. My
database transactions will ensure my data integrity is not compromised. 

Whats more confusing is that the EJB component gets called as pat of a Time
thread shared by other routes. I dont want to interrupt the time thread
since other routes will stop as well.

Sorry for being verbose.
But any help would be appreciated.

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

View raw message