2016-05-18 13 views
0

Iがint-ファイルとしてWatchServiceDirectoryScannerを使用しよう:インバウンド・チャネル・アダプタスキャナー、このような何か:Spring統合凍結INT-ファイルとしてWatchServiceDirectoryScannerを使用して:インバウンド・チャネル・アダプタスキャナ

<int:poller id="globalPoller" default="true" fixed-delay="1000" max-messages-per-poll="10" task-executor="executor" 
      error-channel="errorChannel"> 

</int:poller> 
<task:executor id="executor" pool-size="100"/> 
<int:channel id="filesInChannel"> 
    <int:queue/> 
</int:channel> 
<int-file:inbound-channel-adapter id="filesInAdapter" directory="file:${sas.dir}" 
            channel="filesInChannel" auto-startup="true" scanner="watchDirectoryScanner" > 
    <int:poller ref="globalPoller"/> 

</int-file:inbound-channel-adapter> 


<bean id="nioLocker" class="org.springframework.integration.file.locking.NioFileLocker" /> 

<bean id="watchDirectoryScanner" class="org.springframework.integration.file.WatchServiceDirectoryScanner" > 
    <constructor-arg value="file:${sas.dir}"/> 
    <property name="autoStartup" value="true"/> 
    <property name="filter" ref="compositeFilter" /> 
    <property name="locker" ref="nioLocker"/> 
</bean> 

しかし、アプリケーションを実行されず、エラーログが表示されません。誰でもそれについての経験はありますか?デバッグポイントはどこに置くべきですか?ありがとう。

答えて

0

DEBUGロギングで実行 - ログに何も表示されない場合は、ポーラースレッドがどこかでスタックされています。jstackを使用して、理由を調べるためにスレッドダンプを実行してください。

+0

ありがとうございました。最後に私はこの手法を使ってエラーを見つけました。http://stackoverflow.com/questions/21141431/how-to-debug-spring-integration – Harji

関連する問題