This content has been marked as final.
Show 3 replies
-
1. Re: POJO callback to determine when routes have all been completed?
njiang May 2, 2011 9:03 PM (in response to guest)A StartupListener[1] could help you to do that.
You can find an example for how to use it here[2].
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/StartupListener.java
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/StartupListenerTest.java
Willem
-
2. Re: POJO callback to determine when routes have all been completed?
guest May 6, 2011 3:23 PM (in response to njiang)How would you add this startuplistener upon camelcontext creation in spring?
-
3. Re: POJO callback to determine when routes have all been completed?
davsclaus May 7, 2011 6:48 AM (in response to guest)You can use an event listener instead. It has a callback when CamelContext has been started. And its easy to plugin from XML.
See more here
http://camel.apache.org/eventnotifier-to-log-details-about-all-sent-exchanges.html