-
1. Re: cleaning up seda queue
njiang Jan 31, 2012 9:22 PM (in response to rogelio_sevilla1)DefaultShutdownStrategy is trying to shutdown the camel context in a graceful way.
You can override the default time out from 60 seconds to 1 seconds.
All you need to do is define an instance of DefaultShutdownStrategy by setting the timeout property in the camel context configuration file.
Willem
-
2. Re: cleaning up seda queue
davsclaus Jan 31, 2012 11:42 PM (in response to rogelio_sevilla1)Yeah as Willem says you can lower the timeout of the graceful shutdown. You can read more about it here http://camel.apache.org/graceful-shutdown.html
And the default timeout is 300 seconds.
Btw can you tell a bit more about your use-case for just discarding the messages on the seda queues? Maybe its a good use-case, and if so, we could possible enhance Camel to allow you to more easily configure the seda component/endpoints to tell it, to just discard messages when stopping.
-
3. Re: cleaning up seda queue
rogelio_sevilla1 Feb 3, 2012 1:46 PM (in response to davsclaus)Thanks for your answers mr. Willem and mr. Claus .
About that use case, I'm not sure if our system would be considered a good one. The application we are developing did not really need Camel, however, the lead programmer in my department considered the app small enough to use it as a way for some of us to start experimenting with Fuse ESB and Camel without sacrificing delivering dates.
Honestly I haven't used any of these technologies (or similar ones) before, and all I can say is that I'm pretty amazed so far.