在这部分里,有一点涉及到Camel的内容,不过很简单,camel就是用Url去描述端点的路由。
应用场景:
在一个文件夹里放入文件的时候,将这个文件转移到另一个文件夹。
建立路由:
任意建立一个xml文件如下(这里命名为blueprint.xml)
----------------------------------------------------------------------
<?xml version="1.0"encoding="UTF-8"?>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<camelContextxmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="file:camel/input"/>
<log message="Moving ${
应用场景:
在一个文件夹里放入文件的时候,将这个文件转移到另一个文件夹。
建立路由:
任意建立一个xml文件如下(这里命名为blueprint.xml)
----------------------------------------------------------------------
<?xml version="1.0"encoding="UTF-8"?>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<camelContextxmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="file:camel/input"/>
<log message="Moving ${