Re: Starting routes in StartupListener

2011-11-08 Thread Claus Ibsen
On Tue, Nov 8, 2011 at 2:13 PM, wing-tung Leung wrote: > Hello, > > my camel context contains a few routes which should not be started > automatically, but it should run a business check first for those routes. > My initial idea is to disable "autoStartup" for those routes, and add a > custom Star

Re: Starting routes in StartupListener

2011-11-08 Thread wing-tung Leung
On Tue, Nov 8, 2011 at 2:13 PM, wing-tung Leung wrote: > my camel context contains a few routes which should not be started > automatically, but it should run a business check first for those routes. > My initial idea is to disable "autoStartup" for those routes, and add a > custom StartupListener

Starting routes in StartupListener

2011-11-08 Thread wing-tung Leung
Hello, my camel context contains a few routes which should not be started automatically, but it should run a business check first for those routes. My initial idea is to disable "autoStartup" for those routes, and add a custom StartupListener which performs the check and simply calls "startRoute()