12.5. 将 URI 配置为读取或写入数据
在以下路由中,Camel 将从指定的 websocket 连接中读取。
from("atmosphere-websocket:///servicepath")
.to("direct:next");
以及等同的 Spring 示例:
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="atmosphere-websocket:///servicepath"/>
<to uri="direct:next"/>
</route>
</camelContext>
在以下路由中,Camel 将从指定的 websocket 连接中读取。
from("direct:next")
.to("atmosphere-websocket:///servicepath");
以及等同的 Spring 示例:
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:next"/>
<to uri="atmosphere-websocket:///servicepath"/>
</route>
</camelContext>