camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SpinWin <pierre.yv...@gmail.com>
Subject property-placeholder + OSGI
Date Mon, 10 Dec 2012 18:37:40 GMT
Hello,

I tried to do the following configuration:
<cm:property-placeholder persistant-id="fr.spinwin.test"
update-strategy="reload">
    <cm:default-properties>
        <cm:property name="pathIn" value="file:/home/spinwin/input"/>
        <cm:property name="pathOut" value="file:/home/spinwin/input/done"/>
    </cm:default-properties>
</cm:property-placeholder>

<bean id="testNormalisation"
class="fr.spinwin.test.route.TestNormalisation">
    <property name="aPathIn" value="${pathIn}"/>
    <property name="aPathOut" value="${pathOut}"/>
</bean>

<camelContext id="blueprintCamelContext" trac="true"
xmlns="http://camel.apache.org/schema/blueprint">
    <routeBuilder ref="testNormalisation"/>
</camelContext>


Everything is ok when I install my bundle in Karaf.
When I start / stop ... no problem.

But when I refresh / update ... I eat a nasty NullPointerException in one of
the package org.apache.aries.blueprint.

If someone could have an idea ... it would help me a lot

Thank you very much.



--
View this message in context: http://camel.465427.n5.nabble.com/property-placeholder-OSGI-tp5723850.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message