camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Overwrite blueprint properties in camel blueprint tests
Date Tue, 22 May 2012 14:12:45 GMT
Hi

If you guys have ideas for a way we can improve camel-test-blueprint,
then we may be able to let users to specify in a java method, or some
other way, to load properties from a file / java code etc. and have
those "shadow" any existing properties from the blueprint xml
configuration.

Or any other ways?


On Mon, May 21, 2012 at 7:40 AM, Michael Süess
<michael.sueess@basis06.ch> wrote:
> Hi
>
> true
>
> it works with spring but i can't get it working with blueprint...
>
>
> On 17.05.2012 19:07, Christian Müller wrote:
>>
>> I assume Michael would like to refer to a (test) properties file where he
>> can configure some other endpoint uri than in his real deployment. Like
>> the
>> Spring properties-placeholder mechanism.
>> I didn't get it working with blueprint (loading a properties file from the
>> properties-placeholders). I can only share working examples with Spring...
>> :-(
>>
>> Best,
>> Christian
>>
>> On Thu, May 17, 2012 at 3:40 AM, Willem
>> Jiang<willem.jiang@gmail.com>wrote:
>>
>>> Here is the example[1] that you can take a look.
>>>
>>> [1]http://camel.apache.org/**properties.html#Properties-**
>>>
>>> UsingBlueprintpropertyplacehol**derwithCamelroutes<http://camel.apache.org/properties.html#Properties-UsingBlueprintpropertyplaceholderwithCamelroutes>
>>>
>>>
>>> On Wed May 16 23:33:58 2012, Michael Süess wrote:
>>>
>>>> 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<http://www.osgi.org/xmlns/blueprint/v1.0.0>
>>>> "
>>>>
>>>>
>>>> xmlns:cm="http://aries.apache.**org/blueprint/xmlns/blueprint-**cm/v1.0.0<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<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?
>>>>
>>>>
>>>
>>>
>>> --
>>> Willem
>>> ------------------------------**----
>>> CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
>>> FuseSource
>>> Web: http://www.fusesource.com
>>> Blog:
>>>  http://willemjiang.blogspot.**com<http://willemjiang.blogspot.com>(English)
>>>        http://jnn.javaeye.com (Chinese)
>>> Twitter: willemjiang
>>> Weibo: willemjiang
>>>
>>>
>>
>
>
> --
> Michael Sueess                           Senior Software Engineer
>
> basis06 AG, Birkenweg 61, CH-3013 Bern - Fon +41 31 311 32 22
> http://www.basis06.ch - source of smart business
>
> Keine News verpassen? http://www.basis06.ch/newsletter-registration.html
> Schon gebloggt? http://blog.basis06.ch



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message