OK I will use this.
Thanks for your help!
-
http://developpef.blogspot.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-stop-event-tp5567221p5567604.html
Sent from the Camel - Users mailing list archive at Nabble.com.
if (ServiceStatus.Stopping == camelContext.getStatus()) {
...
}
On Thu, Mar 15, 2012 at 10:58 AM, developpef wrote:
> Sorry for the mistake, I meant ' Nothing more interesting on "getContext()"
> '.
>
> I think I do not really understand. Where is this "isStopping()" method? In
> 2.9.0 it is n
Sorry for the mistake, I meant ' Nothing more interesting on "getContext()"
'.
I think I do not really understand. Where is this "isStopping()" method? In
2.9.0 it is not on CamelContext :
http://www.jarvana.com/jarvana/view/org/apache/camel/camel-core/2.9.0/camel-core-2.9.0.jar!/org/apache/camel/
On Thu, Mar 15, 2012 at 10:30 AM, developpef wrote:
> Thank you for the answer.
>
> The EventNotifier seems to match my needs, but I have none of the mentioned
> methods on the context or on the status. I am in version 2.9.0 and on
> getContext().getStatus() I only found, among others, "isStarting
Thank you for the answer.
The EventNotifier seems to match my needs, but I have none of the mentioned
methods on the context or on the status. I am in version 2.9.0 and on
getContext().getStatus() I only found, among others, "isStarting()",
"isStarted()", "isStoppable()" but not "isStopping()". N
On Thu, Mar 15, 2012 at 8:47 AM, developpef wrote:
> Hello,
>
> I am wondering if there is a way, in a Camel route, to retrieve a kind of
> "stop event" that might be sent from the context when asked for stopping?
>
> Actually, one of my routes is processing a loop on multiple data and does a
> lo