camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ychawla <premiergenerat...@gmail.com>
Subject Camel Route autostartup with Spring Profiles
Date Thu, 12 Mar 2015 15:24:13 GMT
Hello All,
I am looking to dynamically start up routes based on Spring profiles
properties.  I am aware that you can control this via a boolean on the route
and you can define a property to make it dynamic.

<route autoStartup="false">

I have a scenario where I would like to allow the implementer to choose
which beans to dynamically start through a config file and I am already have
the user specify Spring Profiles like this:

environment.setDefaultProfiles(profilesActivatedFromPropertiesFile);

Where the variable profilesActivatedFromPropertiesFile can be for example:
ServiceA, ServiceB.

I would prefer to not have to have additional configuration like this:

autostartRouteServiceA=true
autostartRouteServiceB=true
autostartRouteServiceC=false

This way the user activates beans using profiles and route startup using
properties.

Is there a way to bridge these concepts together and autostart a route based
on a Spring profile?

Thanks,
Yogesh



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Route-autostartup-with-Spring-Profiles-tp5764047.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message