以下のような流れで:
<flow name="fileFlow">
<file:inbound-endpoint path="/inbound/ftp/sbc" pollingFrequency="30000" fileAge="30000" moveToDirectory="/inbound/ftp/sbc/archive">
<file:filename-wildcard-filter pattern="*.xml" caseSensitive="false"/>
</file:inbound-endpoint>
<logger message="Entering #[flow.name] flow" level="INFO"/>
<component class="com.abc.RequestFile"/>
<logger message="Payload after transformation is: #[payload] flow" level="INFO"/>
<vm:outbound-endpoint path="merge" />
<logger message="Exiting #[flow.name] flow" level="INFO"/>
</flow>
コンポーネントに渡されるものを取得InputStream
します。このコンポーネントは、ファイルのリストを返すために必要です。そのうちの 1 つが、読み取られて渡された元のファイルです。Java コンポーネントで InputStream を File に手動でコピーする以外の解決策を探しています。file:inbound-endpoint
RequestFile