Announcement Announcement Module
No announcement yet.
Poller in Spring Integration buffer Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Poller in Spring Integration buffer

    I'm working at implementing a buffer, in order to execute various jobs. I'm working on a Spring-based project. I decided to use Spring Integration to accomplish my aim. So, I thoung on Cafè example, a sample in order to demonstrate how SI works.

    I implmented a table where I dinamically insert jobs to be executed. This table is the "gateway". Then I configured a router t and various channels.

    What I miss is the poller elements, which has to check if new jobs in the "gateway" are present. First of all, is this correct?

    If so, how can I configure the poller? Thanks in advance! Here the xml code:

    <?xml version="1.0" encoding="UTF-8"?>">
    <int:gateway id="usersToSend" service-interface="it.stasbranger.spidly.rss.UsersToSend" />
    <int:channel id="channel" />
    <int:channel id="providers"/>
    <int:router input-channel="providers" ref="providerRouter" method="resolveProviderChannel"/>
    <int:channel id="twitterChannel">
          <int:queue capacity="10"/>
    <int:service-activator input-channel="twitterChannel" ref="twitterService" method="updateStatusByProfile"/>
    <int:channel id="facebookChannel">
          <int:queue capacity="10"/>
    <int:service-activator input-channel="facebookChannel" ref="facebookService" method="updateStatusByProfile"/>
    <int:channel id="linkedinChannel">
          <int:queue capacity="10"/>
    <int:service-activator input-channel="linkedinChannel" ref="linkedinService" method="writeSlogan2Linkedin"/>
    <bean id="twitterService" class=""/>
    <bean id="facebookService" class=""/>
    <bean id="linkedinService" class=""/>
    <int:poller id="poller" default="true">
    Thanks in advace, FB

  • #2
    What I miss is the poller elements,
    Everything looks good.
    Regarding <poller>, take a look here:
    A 'Poller Configuration' paragraph.



    • #3
      Thanks Artem; also see my response, effectively saying the same thing on Stack Overflow.
      Last edited by Gary Russell; May 16th, 2013, 10:59 AM.