私は、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の例を提供できますか? –