poller - Keep sending messages in Spring Integration -
one module sends messages message broker every n second. other module receive messages broker. messages built in method sendmessage of service activator. plan use inbound channel adapter (as in answer) reasons solution not work , keep receiving "received no message during poll, returning 'false'". wrong configuration?
<int-jms:inbound-channel-adapter id="keepalivepoller" channel="keepalivechannel" destination="keepalive" connection-factory="connectionfactory"> <si:poller id="sendpoller" fixed-rate="${keepalive.sendinterval}" max-messages-per-poll="1"></si:poller> </int-jms:inbound-channel-adapter> <si:service-activator input-channel="keepalivechannel" method="sendmessage" ref="keepalivesender"/> <bean class="com.foo.keepalivesender"/> <si:channel id="keepalivechannel"/>
that send message if there message in "keepalive" queue.
you can use...
<int:inbound-channel-adapter id="keepalivepoller" channel="keepalivechannel" expression="'foo'"> <si:poller id="sendpoller" fixed-rate="${keepalive.sendinterval}" /> </int:inbound-channel-adapter> ... , not use jms @ all.
Comments
Post a Comment