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>