camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <>
Subject Re: Camel reference property files with and without OSGI
Date Wed, 09 Mar 2016 17:06:53 GMT

I am using 2.16.1 and Karaf 4.0.2.

I am not sure if I understand you correctly. Do you mean that I need
to define default properties for every single property in the
blueprint during development and testing, and then when the bundle is
deployed, these values are overridden by the cfg file as that is
loaded by Karaf?

Could you explain what you mean by "specificy them to CBTS in a comma
delimited string"?


On Wed, Mar 9, 2016 at 5:59 PM, Ranx [via Camel]
<> wrote:
> What version are you using?  You shouldn't have to replicate the definition
> into Camel context like that anymore.
>         <cm:property-placeholder persistent-id="">
>                 <cm:default-properties>
>                         <cm:property name="someAddress"
> value="http://localhost" />
>                         <cm:property name="someValue" value="true" />
>                 </cm:default-properties>
>         </cm:property-placeholder>
> You can use the default properties for your testing and override them in
> your .cfg file for deployment.
> someAddress=
> someValue=false
> In CamelBlueprintTestSupport you can also override the properties.  You can
> also assign a cfg file in there but I haven't found that to work very well.
> I commonly keep my blueprint-properties.xml separate from my other camel
> blueprint xml. That's for a couple of reasons.  If I want to use a different
> properties set in my camel blueprint tests I then point it to the
> blueprint-properties in the src/test/resources directory instead of the one
> in the src/main/resources.
> Remember that at deployment Karaf will load all the blueprint files it finds
> in the OSGi-INF folder so there isn't anything special about putting these
> files in separate places.  During testing however you do need to explicitly
> set the files to use (naturally enough). To do that you simply specify them
> to CBTS in a comma delimited String.
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> To start a new topic under Camel - Users, email
> To unsubscribe from Camel reference property files with and without OSGI,
> click here.

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message