camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Camel 2.10.3 - placeholder cannot be determined in camel property definition
Date Mon, 11 Feb 2013 19:59:46 GMT
Myriam created the JIRA: https://issues.apache.org/jira/browse/CAMEL-6062

Sent from a mobile device
Am 11.02.2013 11:31 schrieb "Claus Ibsen" <claus.ibsen@gmail.com>:

> On Mon, Feb 11, 2013 at 11:21 AM, Myriam Khairallah
> <myriam.khairallah@atos.net> wrote:
> > Hello,
> >
> > I've got following camel context definition:
> >
> > <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>
> >
> > Here the placeholders as defined in net.atos.acdwb.core.cfg:
> >
> > # ...
> > http.proxyScheme=http
> > http.proxyHost=myHost
> > # ...
> >
> >
> > 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)
> > (...)
> >
> > Thanks for any help,
> > Myriam
>
> I dont think we support placeholders on these Camel properties.
> Fell free to log a JIRA improvement.
>
>
>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Camel-2-10-3-placeholder-cannot-be-determined-in-camel-property-definition-tp5727338.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cibsen@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message