camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "harmohan.singh" <>
Subject How to get Spring System Environment variables in camel properties
Date Wed, 19 Nov 2014 02:31:20 GMT
i want to pass environment variables (O/S environment variables) to camel
routes. something like,

 <route id="route1" prop:autoStartup="{{env.shoudIStart}}" />

similar to how the values are set for configuring properties location:

but, since that doesnt work. i thought of using spring systemEnvironment to
get the value:
#{systemEnvironment['shouldIStart']}  like
but it looks like the syntax {{}} is only configured with ${} and not #{}

is there another way to pass the env variables to routes

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message