camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Camel 2.0 - pass uri reference using variable ${my_Uri}
Date Tue, 05 May 2009 07:23:26 GMT
Hi,

I would like to know if something is planned to support uri declaration for
Camel routes using variable like by example : ${my_Uri}

e.g.

<camel:route>
<camel:from uri="${uriFile}" />
    <camel:setHeader headerName="origin">
        <camel:constant>file</camel:constant>
    </camel:setHeader>
<camel:unmarshal ref="bindyDataformat" />
<camel:to uri="${queueIn}" />
</camel:route>

and

osgix:cm-properties like this

<osgix:cm-properties id="camelProps"
persistent-id="org.apache.camel.example.reportincident.routing">
    <prop key="uriFile">file://c:/temp/data/?move=c:/temp/done/${file:name}<file:///c:/temp/data/?move=c:/temp/done/$%7Bfile:name%7D></prop>
(2)
    <prop key="queueIn">queuingservice:queue:in</prop> (1)
</osgix:cm-properties>

<context:property-placeholder properties-ref="camelProps">

Remarks :
- ${file:name} is a camel property so we will have issues with Spring
because ${ and } are reserved characters
- The example provided here generates Camel error : see
https://issues.apache.org/activemq/browse/CAMEL-1577

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

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