Camel-blueprint(配置样例)

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
           xsi:schemaLocation="
           http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

    <!-- osgi blueprint property placeholder -->
    <cm:property-placeholder id="blueprint.placeholder" persistent-id="camel.blueprint">
        <cm:default-properties>
            <cm:property name="cool" value="mock:result"/>
        </cm:default-properties>
    </cm:property-placeholder>

    <camelContext xmlns="http://camel.apache.org/schema/blueprint">

        <!-- TODO: Make this work with blueprint -->
        <!--<propertyPlaceholder id="properties" location="blueprint"/>-->

        <route>
            <from uri="direct:start"/>
            <to uri="{{cool}}"/>
        </route>
    </camelContext>

</blueprint>

本文出自 “美丽人生” 博客,谢绝转载!

你可能感兴趣的:(职场,camel,blueprint,休闲)