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/29 07:02:22 UTC
[jira] [Resolved] (CAMEL-10255) Camel Main - Make it easy to
configure property placeholder
[ https://issues.apache.org/jira/browse/CAMEL-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-10255.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 2.18.0
Thanks for the PR
> 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
> Assignee: Claus Ibsen
> Fix For: 2.18.0
>
>
> 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)