PDA

View Full Version : Invoking clear() or receive() in XML on a PollableChannel



arunabh403
Oct 8th, 2009, 07:27 AM
hi all ,

I have a requirment for which I am using Spring Integration . The problem I am stuck with is, I want to configure a ever running poller for a PollableChannel . To some extent I did achieve it in the following way :-

<channel id="JMSQueueChannel" >
<queue capacity="3"/>
</channel>
<inbound-channel-adapter channel="JMSQueueChannel" ref="customerPoller" method="executeFeed">
<poller ref="Poller"/>
</inbound-channel-adapter>




The problem with the above is that it polls utill the queue capacity is not achieved . After that it's getting stuck . Is there a way to invoke the receive() or clear() method of the JMSQueueChannel which is a PollableChannel ? So that i will clear() the queue and poller will start polling again .

Many Thanks
AD