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: to import either "some-context-dev.xml" or "some-context-prod.xml" some-

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 dat

Re: Enable disable routes at startup using Spring

2013-05-21 Thread javaCzar
Willem, I am loading the properties in a bean: public class PropLoader extends BridgePropertyPlaceholderConfigurer { ... Properties props = new Properties(); for (String prop : myProperties.getPropertyNames()) { if (prop != null) {

Enable disable routes at startup using Spring

2013-05-20 Thread javaCzar
Is there a way to get something like this to work: 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: org.apache.camel.FailedToCreateRouteException: Fail