You can reach/do the same there as well see the setter method:

BridgePropertyPlaceholderConfigurer#setResolver

Through which you can inject your own PropertiesResolver implementation. So
to recapitulate, just implement you own PropertiesResolver by extending
DefaultPropertiesResolver. Then implement resolveProperties as:

public class MyPropertiesResolver extends DefaultPropertiesResolver {

    public Properties resolveProperties(CamelContext context, boolean
ignoreMissingLocation, String... uri) throws Exception {
        Properties answer = super.resolveProperties(context,
ignoreMissingLocation, uri);

        // now retrieve the remaining *dynamic* properties from the DB and
add them all to
        // the answer

        return answer;
    }

}

And then inject this PropertiesResolver to
BridgePropertyPlaceholderConfigurer using the setter method above.

Babak


salemi wrote
> Thank you Babak. Since we are using Camel 2.10 we are using the
> BridgePropertyPlaceholderConfigurer as followed below:
> 
>     
> <bean id="bridgePropertyPlaceholder"
> class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer" >
>         
> <property name="location" value="classpath:settings.properties"/>
>     
> </bean>
> How does BridgePropertyPlaceholderConfigurer with the PropertiesComponent?
> 
> Thanks,
> 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-tp5740599p5740705.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to