Hi!

Here is the promised configuration for Blueprint Admin service.

blueprint.xml:

<blueprint>
...
    <!-- Load in application properties reference -->
    <cm:property-placeholder persistent-id="etb.esb.config">
        <cm:default-properties>
            <cm:property name="foo.conf.value" value="foo"/>
            <cm:property name="bar.conf.value" value="bar"/>
        </cm:default-properties>
    </cm:property-placeholder>
...
</blueprint>

And that's all. Place the "etb.esb.config" file in karaf's etc/ and go use
it.

Usage outside camel context:

<bean id="myBean" class="com.myProject.myBean">
        <property name="myProperty" value="${foo.conf.value}"/>
</bean>

Within Camel context is the usage the same, only format of the config
"placeholders" is a little bi different:
Try "{bar.conf.value}". Hope I"m not wrong here, I don't have such real
example in my project and I can't test it right now.

Also you can use it within Java code easily, if you need code example for
that, I can find you for it. I've used it somewhere.




On Fri, Nov 16, 2012 at 4:41 PM, martin11 <[email protected]> wrote:

> yes, it would be very helpful to see your blueprint context. Thank you.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-use-camel-component-properties-outside-camel-context-tp5721318p5722880.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
S pozdravem / Best regards
Martin Stiborský

Jabber: [email protected]
Twitter: http://www.twitter.com/stibi

Reply via email to