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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.