Hi Ali,

you could make use of the PropertiesComponent for this purpose:

http://camel.apache.org/properties.html#Properties-ConfiguringinJavaDSL

You can find lots of tests about using this component inside Spring DSL
here:

https://github.com/apache/camel/tree/master/components/camel-spring/src/test/java/org/apache/camel/component/properties

Babak


salemi wrote
> Hi,
> 
> During the camel startup, our code will query a database and retrieve the
> uri information for all the jms endpoints.
> 
> I was wondering how can I overwrite the uri of the 
> <from>
>  elements in example below?
> 
>           
> <route id="routeTypeName" autoStartup="false" >
>                       
> <from uri="{{type}}.{{name}}"/>
> Ali





--
View this message in context: 
http://camel.465427.n5.nabble.com/dynamicly-change-the-url-of-the-from-element-after-the-camelcontext-is-started-tp5740599p5740607.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to