camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Süess <michael.sue...@basis06.ch>
Subject Overwrite blueprint properties in camel blueprint tests
Date Wed, 16 May 2012 15:33:58 GMT
I have the following camel blueprint xml route and want to set/overwrite 
in my CamelBlueprintTest the blueprint properties data.in and data.out 
to test directories:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
 
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0">
     <cm:property-placeholder persistent-id="foo">
         <cm:default-properties>
             <cm:property name="data.in" value="data/in" />
             <cm:property name="data.out" value="data/out" />
         </cm:default-properties>
     </cm:property-placeholder>

     <camelContext id="root" 
xmlns="http://camel.apache.org/schema/blueprint">
         <route id="root1">
             <from uri="file:{{data.in}}?noop=true"/>
             <to uri="file:{{data.out}}"/>
         </route>
     </camelContext>
</blueprint>


Any ideas?

Mime
View raw message