春の統合の inbound-channel-adapter を使用しています。2 つの異なるディレクトリ (ファイル カテゴリごとに 1 つ) の下でポーリングし、そこにあるファイルを解析したいと考えています。私が使用するコードは次のとおりです。
<int:channel id="inputChannel"/>
<file:inbound-channel-adapter id="fileInOne"
directory="myDirOne"
auto-create-directory="true"
channel = "inputChannel">
<int:poller id="one" cron="1/10 * * * * *"/>
</file:inbound-channel-adapter>
<file:inbound-channel-adapter id="fileInTwo"
directory="myDirTwo"
auto-create-directory="true"
channel = "inputChannel">
<int:poller id="two" cron="1/10 * * * * *"/>
</file:inbound-channel-adapter>
両方の inbound-channel-adapter が同じチャネルを使用します。したがって、ファイルがどの inbound-channel-adapter から読み込まれたかを知りたいのです。