327.4. Producer 끝점으로 사용
SSH 구성 요소를 Producer(.to("ssh://…")로 사용하는 경우 원격 SSH 서버에서 실행할 명령으로 메시지 본문을 보냅니다.
다음은 XML DSL에 대한 예입니다. 명령에는 XML로 인코딩된 새 줄( )이 있습니다.
<route id="camel-example-ssh-producer">
<from uri="direct:exampleSshProducer"/>
<setBody>
<constant>features:list </constant>
</setBody>
<to uri="ssh://karaf:karaf@localhost:8101"/>
<log message="${body}"/>
</route>