0
SIが初めてです。私は以下のSIフローを持っています。 Javaプログラムは、アウトバウンド・チャネルの後に終了すると予想されますが、それは待っています。なぜか、私は混乱しています。前もって感謝します!フローが予期したとおりに終了しない
<int-file:inbound-channel-adapter id="filesIn"
directory="file:${com.cld.creditexpenses.inputdirectory}"
filename-pattern="*.313" auto-startup="true">
<int:poller id="poller" fixed-delay="10000"/>
</int-file:inbound-channel-adapter>
<int:service-activator input-channel="filesIn" ref="delimitedFileProcessor"
method="processFile" output-channel="outChannel" />
<int:outbound-channel-adapter id="outChannel" ref="fileArchiver" method="archiveFile" >
</int:outbound-channel-adapter>
返信いただきありがとうございます。だから、もし私が以下のようなSpring Bootクラスを使ってそれを実行しているなら、私はアプリケーションのコンテキストを取得して閉じるために何とか変更する必要があると思いますか? –
「@ImportResource( "クラスパス:SI-config.xmlの") @SpringBootApplicationパブリッククラスCreditExpensesApplication { \tパブリック静的無効メイン(文字列[] args){ \t \t SpringApplication.run(CreditExpensesApplication.class、引数) ; \t} } ' –
コメントにコードを入れないでください。代わりに質問を編集してください。あなたが見ることができるように、それは全く読めません。 'SpringApplication'の' run'メソッドはコンテキストを返します。処理がいつ完了するかを知るためのメカニズムが必要です。コンテキストを閉じます。 'ConfigurableApplicationContext context = SpringApplication.run(...);' –