Results 1 to 6 of 6

Thread: More than one pollar

  1. #1

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

  3. #3

    Default Pollar question

    Quote 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.

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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"

  5. #5

    Default 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.

  6. #6
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •