Blueprint placeholder configuration does not work in JBoss Fuse
Issue
-
We have a working Camel Route in an OSGI bundle using BluePrint. We are using blueprint property placeholders to set some endpoint uris via those placeholders. The configuration values are stored in a file called "example-route.cfg". This file is located in {fuse_home}/etc.
-
Local testing works fine. Everything as expected. When we deploy the bundle to fuse, we get the exception.
Caused by: java.lang.IllegalArgumentException: Property with key [csv-source] not found in properties from text: {{csv-source}}
at org.apache.camel.component.properties.DefaultPropertiesParser.doParseUri(DefaultPropertiesParser.java:120)
at org.apache.camel.component.properties.DefaultPropertiesParser.parseUri(DefaultPropertiesParser.java:51)
at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:160)
at org.apache.camel.component.properties.PropertiesComponent.parseUri(PropertiesComponent.java:119)
at org.apache.camel.impl.DefaultCamelContext.resolvePropertyPlaceholders(DefaultCamelContext.java:1155)
at org.apache.camel.impl.CamelPostProcessorHelper.getInjectionPropertyValue(CamelPostProcessorHelper.java:236)
- When we analyse the deployed bundle with
config:list
, we can see that our configuration values are set. So the "example-route.cfg" file was obviously read.
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Aries/Blueprint
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.