How to customize PropertyPlaceholder in blueprint to perform some activity and than load some more properties?

Solution Verified - Updated -

Issue

  • In spring we can customize the property placeholder by extending "PropertyPlaceholderConfigurer" class and overriding the method "processProperties" so that we can write custom code to connect to the DB and set the properties. In spring context we mention
<bean id="placeholderConfigMM" class="com.mycompany.util.PropUtil">
            <property name="locations">
                  <list>
                        <value>file:${MYCOMPANY_PROP_LOC}/configdb.properties</value>
                  </list>
            </property>
            <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
      </bean>
  • Similarly how we can do in camel blueprint?

Environment

  • Red Hat JBoss Fuse
    • 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content