In JBoss Fuse Camel, how do set properties (cm:property-placeholder) in blueprint to the beans, within camel context, and java dsl route builder?
Issue
I'm looking for a valid way to load external properties into beans and java dsl code via an external cfg file.
I'm using the cm:property-placeholder definition in my blueprint xml file and I've reviewed the documentation at http://camel.apache.org/using-propertyplaceholder.html regarding this issue. I am able to get the properties to load up from my cfg file by following the conventions for the persistent-id matching by placing it in my etc directory. This works fine within the blueprint.xml file, but once I try and access any of the properties using the same syntax of ${ } in any java code I am unable to get a filled in value. I'm pretty sure I had this working at one point, but it does not appear to be working now. It seems to me there should be some way for my java code to access these variables but I cannot find any proper documentation on how this is done.
Environment
- JBoss Fuse 6.1
- Apache Camel 2.12.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
