Quantcast

Notification on CamelContext stop

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Notification on CamelContext stop

yazan
Hi,
How can I get a notification when CamelContext is stopped, the API has add addStartupListener but nothing similar for when the context is stopped.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Notification on CamelContext stop

Claus Ibsen-2
On Sun, Mar 17, 2013 at 7:35 AM, yazan <[hidden email]> wrote:
> Hi,
> How can I get a notification when CamelContext is stopped, the API has add
> addStartupListener but nothing similar for when the context is stopped.
>

See the event notifier
http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html

There is a number of event classes in the event package, and also some
for the lifecycle of CamelContext
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/management/event/package-summary.html

>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Notification-on-CamelContext-stop-tp5729300.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [hidden email]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Notification on CamelContext stop

yazan
Thanks Ibsen, CamelContextStoppingEvent is what I need.
Loading...