Announcement Announcement Module
Collapse
No announcement yet.
More than one pollar Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • More than one pollar

    Is it possible to declare more than one Pollar to run on particular directory for file reading.If yes than how.

    <file:inbound-channel-adapter id="filesIn" channel="input"
    directory="file:${java.io.tmpdir}/spring-integration-samples" prevent-duplicates="true">
    <intoller fixed-rate="1000"/>
    </file:inbound-channel-adapter>

  • #2
    No, its not, but the real question is why would you need more than one Poller?

    Comment


    • #3
      Pollar question

      Originally posted by oleg.zhurakousky View Post
      No, its not, but the real question is why would you need more than one Poller?
      we want to run more than one thread to pickup the files from particular directory because we would recieve million of files and have to process all those files.

      Comment


      • #4
        If you want multiple threads all you need is configure task-executor on the poller
        Code:
        <int:poller receive-timeout="5000" task-executor="taskExecutor" fixed-rate="50"/>
        	
        <task:executor id="taskExecutor" pool-size="20" queue-capacity="20"

        Comment


        • #5
          Pollar with executor

          Thanks for the reply could you please provide me the link for details understanding on pollar as i didn't get much in spring refrence pdf.

          Comment


          • #6
            There is a lot of details regarding Poller in SI Reference manual http://static.springsource.org/sprin...nce/htmlsingle
            Just do a string search on the word 'poller' and you'll find a lot of information

            Comment

            Working...
            X