camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: BridgePropertyPlaceholderConfigurer - Load propertyfile from database
Date Fri, 10 Feb 2017 10:36:56 GMT
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 <itznavin@gmail.com> 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

Mime
View raw message