camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilboy <josephoto...@gmail.com>
Subject Re: Dynamic generation of Camel routes
Date Sun, 29 Jul 2012 16:36:48 GMT
Hi Folks

Thanks for all the helpful responses on this item.

Basically,  I followed an approach similar to what Pontus outlined above.

However, I have noted some strange behavior. When my application has started
up the routes get added as follows:

*context.addRoutes(new RouteBuilder().....*

After this I get a reference to all the routes on the context and call (for
all of my routes):
*camelContext.startRoute("routeid").... *
..to ensure all the routes get started.

I am typically creating about 25 routes dynamically. However, I notice that
the *first *route that gets started always seems to fail while the reset of
them run fine:

*20120727 18:51:38,598 IST INFO  impl.DefaultShutdownStrategy [Thread-4]
Starting to graceful shutdown 1 routes (timeout 300 seconds)*

I have tried debugging with no success. I have increased debug levels etc
but am not getting any information that can help me determine why the first
route always gets shut down

Any help/suggestions greatly appreciated
Thanks
Joe



--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-generation-of-Camel-routes-tp5716223p5716587.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message