Announcement Announcement Module
Collapse
No announcement yet.
Poller in Spring Integration buffer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
    
    <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:channel>
    <int:service-activator input-channel="twitterChannel" ref="twitterService" method="updateStatusByProfile"/>
    
    <int:channel id="facebookChannel">
          <int:queue capacity="10"/>
    </int:channel>
    <int:service-activator input-channel="facebookChannel" ref="facebookService" method="updateStatusByProfile"/>
    
    <int:channel id="linkedinChannel">
          <int:queue capacity="10"/>
    </int:channel>
    <int:service-activator input-channel="linkedinChannel" ref="linkedinService" method="writeSlogan2Linkedin"/>
    
    <bean id="twitterService" class="it.social.TwitterService"/>
    <bean id="facebookService" class="it.social.FacebookService"/>
    <bean id="linkedinService" class="it.social.LinkedinService"/>
    
    <int:poller id="poller" default="true">
    
    </int:poller>
    Thanks in advace, FB

  • #2
    Hi!
    What I miss is the poller elements,
    Everything looks good.
    Regarding <poller>, take a look here: http://static.springsource.org/sprin...espace-inbound
    A 'Poller Configuration' paragraph.

    HTH,
    Artem

    Comment


    • #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.

      Comment

      Working...
      X