How to add an EventNotifier to Camel using Main class standalone
问题 I'm trying to add an EventNotifier to my Apache Camel standalone application which uses the Main class from Camel. http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html public void boot() throws Exception { Main main = new Main(); main.addRouteBuilder(new MyRouteBuilder()); System.out.println("Starting Camel. Use ctrl + c to terminate the JVM.\n"); main.run(); } I want to add an EventNotifier like in this cookbook example: http://camel.apache.org/eventnotifier-to-log