Re: Adding Routes while camelContext status is Initializing

2022-05-10 Thread Claus Ibsen
Hi Yes if you do manual stuff like this that are out of the ordinary, then you need to wait until camel context is started to add your custom routes. On Tue, May 10, 2022 at 10:58 AM Martin Lichtin wrote: > > Is there potentially a race condition when calling addRoutes while > camelContext

Adding Routes while camelContext status is Initializing

2022-05-10 Thread Martin Lichtin
Is there potentially a race condition when calling addRoutes while camelContext status is 'Initializing'? I noticed the routes are not actually added in such a case, but no error or warning appears, they're just silently ignored. Creating the CamelContext with blueprint, then adding the