camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Is there a way to synchronize route startup
Date Fri, 27 Aug 2010 00:41:03 GMT
Hi Charles,

If your camel context isn't started, camel will not start the 
routeBuilder until the camel context is started.

Willem
Charles Moulliard wrote:
> Hi,d
> 
> We have created a list of routes dynamically (where the from is different
> based on topic name) using routeBuilder and next we add them to the
> CamelContext using CamelContext.addRoutes(routeBuilder). As we have to
> iterate through the list of routeBuilder to add them to the camelContext,
> they are started sequentially.
> 
> Is there a way to add all the routes to the CamelContext in one step and
> that Camel starts them in parallel ?
> 
> Regards,
> 
> Charles Moulliard
> 
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |  Twitter :
> http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
> 


Mime
View raw message