Re: Enable disable routes at startup using Spring

2013-05-22 Thread javaCzar
Willem, Thanks for the assist. To aid anyone else that might follow this trhead, here is what I ended up implementing: start applicaiton with something like -Denvironment=dev or -Denvironment=prod main context xml uses: import resource=some-context-${environment}.xml/ to import either

Re: Enable disable routes at startup using Spring

2013-05-21 Thread javaCzar
Willem, I am loading the properties in a bean: bean id=propLoader class=com.aaa.bbb.ccc.PropLoader/ public class PropLoader extends BridgePropertyPlaceholderConfigurer { ... Properties props = new Properties(); for (String prop : myProperties.getPropertyNames()) {

Re: Enable disable routes at startup using Spring

2013-05-21 Thread javaCzar
Willem, My error in the last post. Your assitance with the {{xxx}} naming was correct. The variable is being set correctly and can be accessed bia this naming. I thought is was not working because what I am seeing that with autoStartup=false the endpoint still initializes, just the incoming data

Enable disable routes at startup using Spring

2013-05-20 Thread javaCzar
Is there a way to get something like this to work: route autoStartup=${enableRoute} The value of the attribute is set to a valid parsible string representation of a boolean (ie. true or false) yet I keep getting the following error: org.apache.camel.RuntimeCamelException: