camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-6062) Placeholder cannot be determined in camel property definition
Date Sun, 26 May 2013 12:14:21 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-6062:
-------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: Future
                   2.12.0
    
> Placeholder cannot be determined in camel property definition
> -------------------------------------------------------------
>
>                 Key: CAMEL-6062
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6062
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.3
>            Reporter: Myriam Khairallah
>            Priority: Minor
>             Fix For: 2.12.0, Future
>
>
> Hello,
> I've got following camel context definition:
> {code:xml}
> <camelContext id="myContext" xmlns="http://camel.apache.org/schema/spring" trace="true">
>         <camel:properties>
>                 <property key="http.proxyScheme" value="{{http.proxyScheme}}"/>
>                 <property key="http.proxyHost" value="{{http.proxyHost}}"/>
>                 <property key="http.proxyPort" value="8080"/>
>         </camel:properties>
>         <propertyPlaceholder id="properties" location="classpath:net.atos.acdwb.core.cfg"/>
>         <routeBuilder ref="wallboardRoute" />
> </camelContext>
> {code}
> Here the placeholders as defined in net.atos.acdwb.core.cfg:
> {code}
> # ...
> http.proxyScheme=http
> http.proxyHost=myHost
> # ...
> {code}
> This file is available in the classpath as other spring placeholders are detected within
the context file. Even so, I get following exception when attempting to run my unittest:
> (...)
> Caused by: java.lang.IllegalStateException: Scheme '{{http.proxyscheme}}' not registered.
>         at org.apache.http.conn.scheme.SchemeRegistry.getScheme(SchemeRegistry.java:71)
>         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)
> (...)
> According to Claus, placeholders are not supported on these Camel properties. 
> I thing it would be very helpful, though.
> Thanks and regards,
> Myriam

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message