Announcement Announcement Module
Collapse
No announcement yet.
Invoking clear() or receive() in XML on a PollableChannel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invoking clear() or receive() in XML on a PollableChannel

    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 :-
    Code:
    <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
Working...
X