You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by yazan <qe...@gmail.com> on 2013/03/17 07:35:28 UTC

Notification on CamelContext stop

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.



--
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.

Re: Notification on CamelContext stop

Posted by yazan <qe...@gmail.com>.
Thanks Ibsen, CamelContextStoppingEvent is what I need.



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

Re: Notification on CamelContext stop

Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, Mar 17, 2013 at 7:35 AM, yazan <qe...@gmail.com> 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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen