11.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>