I propose to replace the current structure getCamelContext (). getProprties (). get("my_property") to the new method getCamelContext (). getProperty("my_property")
The implementation of this method will produce an automatic substitution values using property placeholders. String getProperty (String name) { String value = getProperties().get(name); if (ObjectHelper.isNotEmpty (proxyUrl)) value = resolvePropertyPlaceholders (value); return value; } Almost universally used property placeholders. Only in this place, this mechanism is not in use. For example, "Using proxy settings outside of URI", have no universal solution. For each installation of the system must collect a unique jar (OSGi bundle). See also https://cwiki.apache.org/confluence/display/CAMEL/How+do+I+configure+the+default+maximum+cache+size+for+ProducerCache+or+ProducerTemplate In this example, the xml has no universal solution. In Java DSL parameter can be specified dynamically. In the xml this parameter is static. -- View this message in context: http://camel.465427.n5.nabble.com/initialize-camelContext-properties-tp5715695p5715822.html Sent from the Camel - Users mailing list archive at Nabble.com.