나는 SFTP 끝점과 함께 Apache Camel을 사용하는 레거시 애플리케이션을 개발 중이다. Camel 컨텍스트는 Spring Xml Dsl을 사용하여 정의됩니다.Apache Camel SFTPConfiguration with Spring XML
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camel:camelContext id="myCtx" errorHandlerRef="eventDLQ"
xmlns="http://camel.apache.org/schema/spring"
autoStartup="true">
<camel:endpoint id="sftp1" uri="sftp://[email protected]"/>
<camel:endpoint id="sftp2" uri="sftp://[email protected]"/>
</camel:camelContext>
</beans>
은 내가 SFTPConfiguration 객체 를 사용하여 낙타 SFTP를 구성해야하지만 스프링을 사용하고로 묶는 방법을 모르겠어요.
XML 파일에서 Spring을 사용하여 bean을 만들면 Camel이 자동 감지 할 수 있습니까?
SftpBeanConfiguration의 예를 제공 할 수 있습니까? –