You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2009/05/19 15:54:50 UTC

[jira] Created: (CAMEL-1631) create a properties component so that endpoints can be created where the URI is looked up in a properties file at runtime

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.0.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.


[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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (CAMEL-1631) create a properties component so that endpoints can be created where the URI is looked up in a properties file at runtime

Posted by "Jonathan Cook (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52015#action_52015 ] 

Jonathan Cook commented on CAMEL-1631:
--------------------------------------

I assume this would work for all endpoints? Is there a clever way to lookup the right endpoint to delegate to?

> 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.0.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.


[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

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Assigned: (CAMEL-1631) create a properties component so that endpoints can be created where the URI is looked up in a properties file at runtime

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1631:
----------------------------------

    Assignee: Claus Ibsen

> 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.


[jira] Commented: (CAMEL-1631) create a properties component so that endpoints can be created where the URI is looked up in a properties file at runtime

Posted by "James Strachan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51780#action_51780 ] 

James Strachan commented on CAMEL-1631:
---------------------------------------

similar versions of this could be done to use JNDI/LDAP lookups for endpoint URIs

> 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.0.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.