<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>
转载于:https://blog.51cto.com/nepoulia/539399