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.

Reply via email to