Announcement Announcement Module
Collapse
No announcement yet.
Poller's cron expression in Inbound-Adapter is ignored Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Poller's cron expression in Inbound-Adapter is ignored

    Hi,

    I just don't get it. In my context I have the following inbound adapter configuration

    Code:
    <int-sftp:inbound-channel-adapter id="sftpAdapterCompleteConfig"
                                          session-factory="sftpSessionFactory"
                                          channel="sftpInboundChannelComplete"
                                          remote-directory="/config/complete"
                                          local-directory="/home/xxx/xxx/config/complete"
                                          filename-pattern="*.esm"
                                          auto-create-local-directory="true"
                                          delete-remote-files="false">
            <int:poller id="pollerComplete" cron="0 0 * * * *"/>
            <!--<int:poller id="pollerComplete" fixed-rate="5000" />-->
        </int-sftp:inbound-channel-adapter>
    But in my log there are polling messages every 500 milli seconds.
    Code:
    16:47:32,548 DEBUG SourcePollingChannelAdapter:71 - Received no Message during the poll, returning 'false'
    16:47:33,048 DEBUG SourcePollingChannelAdapter:71 - Received no Message during the poll, returning 'false'
    16:47:33,048 DEBUG SourcePollingChannelAdapter:71 - Received no Message during the poll, returning 'false'
    What am I missing to get it right. I used the cron expression stated in the reference api example and tried out a few more with no success. Even using the fixed delay or fixed rate attribute does not work.

    Please give me hint what could be wrong to get the cron expression working.

    Thx
    Peter

  • #2
    That cron expression runs once an hour (second=0, minute=0).

    It works fine for me.

    Are you sure you don't have another poller someplace in the context?

    Comment


    • #3
      Well u got me... I was importing another xml context file that I have successfully ignored!

      Anyway thx for opening my eyes.

      Cheers Peter

      Comment

      Working...
      X