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 2009/06/24 11:07:36 UTC

[jira] Updated: (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 updated CAMEL-1631:
-------------------------------

    Fix Version/s:     (was: 2.0.0)
                   2.1.0

> 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
>             Fix For: 2.1.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.