You could either make it configurable with placeholders: http://camel.apache.org/using-propertyplaceholder.html
or use a when choice: http://camel.apache.org/spring-xml-extensions.html 2013/7/16 boris <boris.shuk...@barclays.com> > How could I have a conditional uri string? > For example, > I have <from uri="prod_uri" in production and <from uri="direct:start" > for testing. > I want to have a single xml file for both and manage uri string > conditionally. > Thanks, > Boris > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/conditional-uri-tp5735724.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen