Hi,

I understand that if you deploy our Camel project to an OSGI environment
like Karaf you can simply write:

<cm:property-placeholder id="INT001_SelfServiceMachine_Properties"
persistent-id="INT001_SelfServiceMachine" />

<camelContext xmlns="http://camel.apache.org/schema/blueprint";
                id="INT001_SelfServiceMachine" useMDCLogging="true">
                <propertyPlaceholder id="properties"
location="blueprint:INT001_SelfServiceMachine_Properties"/>

And this works when the project is deployed to Karaf and the property file
is located there.

But how can you configure it when Karaf is not available?

I used this bean before:
        

But is there a single way to refer to property files regardless of when you
are in Karaf or when you are in your e.g. Eclipse and your property file is
in your /src/resources folder and the bean above works? For instance, when
you use Jenkins and and want to run tests and build the bundle, you may not
have Karaf available.

Thanks for any input on this.

Best
Souciance
                





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-reference-property-files-with-and-without-OSGI-tp5778806.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to