4.5. 데이터를 쓰거나 읽을 URI 구성
아래 경로에서 Camel은 지정된 websocket 연결에 씁니다.
from("direct:start") .to("ahc-ws://targethost");
다음과 같은 Spring 샘플이 있습니다.
<camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="direct:start"/> <to uri="ahc-ws://targethost"/> </route> </camelContext>
아래 경로에서 Camel은 지정된 websocket 연결에서 읽습니다.
from("ahc-ws://targethost") .to("direct:next");
다음과 같은 Spring 샘플이 있습니다.
<camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="ahc-ws://targethost"/> <to uri="direct:next"/> </route> </camelContext>