You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/08/19 13:21:22 UTC
[jira] [Created] (CAMEL-10255) Camel Main - Make it easy to
configure property placeholder
Claus Ibsen created CAMEL-10255:
-----------------------------------
Summary: Camel Main - Make it easy to configure property placeholder
Key: CAMEL-10255
URL: https://issues.apache.org/jira/browse/CAMEL-10255
Project: Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
So you can use
Where you can specify one or more locations separated by comma:
main.setPropertyPlaceholderLocations("myapp.properties");
See SO
http://stackoverflow.com/questions/39033103/how-to-access-property-file-in-apache-camel-with-java-dsl
Today its a bit harder to do, where you either need to use the MainListener or to setup the PropertiesComponent from a RouteBuilder configure method, or to use the bind which likely is the easiest.
PropertiesComponent prop = new PropertiesComponent();
prop.setXXX
main.bind("properties, prop);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)