You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/02/08 14:19:34 UTC
[jira] Resolved: (CAMEL-1631) create a properties component so that
endpoints can be created where the URI is looked up in a properties file at
runtime
[ https://issues.apache.org/activemq/browse/CAMEL-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1631.
--------------------------------
Resolution: Fixed
trunk: 907650.
> create a properties component so that endpoints can be created where the URI is looked up in a properties file at runtime
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1631
> URL: https://issues.apache.org/activemq/browse/CAMEL-1631
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: James Strachan
> Assignee: Claus Ibsen
> Fix For: 2.3.0
>
>
> rather than this trick: http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html which is spring specific and a bit cludgy (requiring an <endpoint> in XML and an entry in a properties file) it would be good if we could define a PropertiesComponent which can be configured like this...
> {code}
> <bean id="properties" class="org.apache.camel.components.properties.PropertiesComponent">
> <property name="location" value="classpath:myfile.properties"/>
> </bean>
> {code}
> Then if the file *myfile.properties* on the classpath looks like this
> {code}
> foo = file://usr/local/cheese
> {code}
> Then sending to the endpoint *properties:foo* would in fact send to *file://usr/local/cheese* unless folks overrode the system property on the command line (say)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.