Hi All,
can we configure integration chain with poller so that it will behave like Thread's wait(nanosecond) method
i.e if no messages are there in input queuechannel it will poller will sleep ,if any messages in queue channel before the sleep timeout ,the poller will wake up polls the messages from the input channel
please find the configuration below
<integration:channel id="s1.channel">
<integration:queue capacity="10000" />
</integration:channel?
<integration:chain id="s1.chain" input-channel="s1.channel"
output-channel="s1.inChannel"
send-timeout="${s1.poller.send-timeout}">
<integration:header-enricher>
<integration:error-channel ref="exception.channel"/>
<integration:header name="Subscriber" value="${s1.dn}" />
<integration:header name="Fault_Subscriber" value="${s1.fault.dn}" />
<integration:header name="Destination" value="${s1.destination}" />
</integration:header-enricher>
<integrationoller receive-timeout="30000"
fixed-rate="10" time-unit="MILLISECONDS"/>
</integration:chain>
the problem is that any messages which comes after poller in sleep state wiil be pending in inputChannel till the poller timeout is happeen,
my requirement is message should be picked by the poller as soon as it comes to the inputChannel
i can reduce the the receive-timeout to 10 but it mekes unnecessary check to the inputChannel even though no messages are the inputChannel
in this senario can i tweak the poller like a messageListner i.e consume messages as and when it comes to the inputChannel
Any suggestion
Thanks in Advance
Srinibas


oller receive-timeout="30000"
Reply With Quote
