How to set Configuration file name in standalone Fuse server ?

Solution Verified - Updated -

Environment

  • Red Hat JBoss Fuse
    • 6.2.0

Issue

  • How to name a configuration file for a bundle in order to be associated to the bundle by the Fuse server. In documentation it is indicated, that the name must be .cfg.
  • Where can user get the PID from? Must user indicate the property file name in pom.xml?

Resolution

  • User can refer link[1] to get details about how to set configuration file name in a blueprint xml. In the link search for text Blueprint example to get exact reference.
  • Below is the summary, user if having org.fusesource.example.cfg as configuration file in etc folder than user can refer it with persistent-id argument within cm:property-paceholder tag as below.
 <cm:property-placeholder persistent-id="org.fusesource.example">
        <cm:default-properties>
            <cm:property name="prefix" value="Blueprint-Example"/>
        </cm:default-properties>
    </cm:property-placeholder>

    <bean id="myTransform" class="org.apache.servicemix.examples.camel.MyTransform">
        <property name="prefix" value="${prefix}" />
    </bean>
  1. https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.1/html-single/Deploying_into_the_Container/index.html#DeployCamel-OsgiConfigProps

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.