camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javaCzar <jma...@mimictechnologies.com>
Subject Re: Enable disable routes at startup using Spring
Date Wed, 22 May 2013 17:34:40 GMT
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 "some-context-dev.xml" or "some-context-prod.xml"

some-context-dev.xml defines:
<routeContext id="aContext" xmlns="http://camel.apache.org/schema/spring">
   
</routeContext>

and some-context-prod.xml defines:
<routeContext id="aContext" xmlns="http://camel.apache.org/schema/spring">
   
</routeContext>




--
View this message in context: http://camel.465427.n5.nabble.com/Enable-disable-routes-at-startup-using-Spring-tp5732852p5732975.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message