On Wed, Jul 11, 2012 at 3:28 PM, anand_tech <[email protected]> wrote:
> Hi ,
>
> I am making a simple application based on camel. It reads some files in a
> directory and then after processing  new files are made. The problem is that
> after files are made i call the stop method of camel context. But the code
> get stuck there, nothing happens further. This is very unexpected because
> later i will have to convert this code into a Swing GUI type application and
> then i want to give a restart or reload sort of functionality. but if camel
> context won't stop then it wouldn't be possible. so my exact question is
> what the exact behavior of stop method of camel context, because in my case
> it is obviously not working or lets say taking forever .
>

The stop() method will shutdown Camel in a graceful manner.
So it may take some time to do that.

You can read more here
http://camel.apache.org/graceful-shutdown.html

And a bit here as well
http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html

So if your stop() takes a long time, then there is most likely pending
inflight messages still in processing.




> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Exact-behaviour-of-Camel-Context-stop-method-tp5715858.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to