As Clause say this is more a Spring question. And Spring does support this by adding a custom placeholder configurer. Here[1] is an example of a placeholder configurer that reads the properties from a database using JDBC API.
[1]: https://github.com/Redpill-Linpro/spring-config-jdbc Best regards // Pontus On Fri, 10 Feb 2017 at 11:37 Claus Ibsen <[email protected]> wrote: > Hi > > The bridge is only to integrate with Spring. So if you want to load > properties from databases you would need to find a way for spring to > do that / support that. > > I am actually not sure if spring has support for loading properties > from databases. > > > > On Fri, Feb 10, 2017 at 2:49 AM, Naveen <[email protected]> wrote: > > Hi, > > I'm new to apache camel, sorry if my question is very basic. > > > > I'm using Apache camel with spring in my application. I'm using > > BridgePropertyPlaceholderConfigurer like below. Am accessing these > > properties using placeholders {{ }} in camel context and ${} in spring > > beans. I would like to add one more property file from database(mongodb) > and > > it should be loaded during application startup. > > > > Is BridePropertyPlaceholderConfigurer supports property file from > database ? > > or do i need to use any other property component addition to this ? I > want > > to access the property in both camel context and spring using same > > placeholders {{}} in camel context and ${} in spring beans for additional > > property file from db. Please suggest > > > > <bean id="bridgePropertyPlaceholder" > > > class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"> > > <property name="locations"> > > <list> > > <value>classpath:application.properties</value> > > <value>classpath*:mongo.properties</value> > > </list> > > </property> > > <property name="ignoreResourceNotFound" value="true" /> > > </bean> > > > > Thanks in advance > > > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/BridgePropertyPlaceholderConfigurer-Load-propertyfile-from-database-tp5793740.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >
