Results 1 to 2 of 2

Thread: Inbound Channel Adapter Polling stops after a null value received

  1. #1
    Join Date
    Jul 2010
    Posts
    5

    Default Inbound Channel Adapter Polling stops after a null value received

    I'm using Spring-Integration 2.0.0.M5
    And below is part of my xml configuration.

    Code:
    	<inbound-channel-adapter id="processResponse" method="getSomething" ref="processMgr">
    		<poller max-messages-per-poll="5">
    			<interval-trigger interval="5" time-unit="SECONDS"/>
    		</poller>
    	</inbound-channel-adapter>
    getSomething may return an object or null. Whenever null is returned, the poller stops even after the interval trigger hits 5 seconds. It won't go on anymore.

    Am I missing something here? I know that the poller will stop polling for message after it hits max-messages-per-poll or a null value. But it should start polling again after 5 seconds (according to the configuration above). In my case, it never polls anymore.

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,854

    Default

    Are you sure it's simply returning null and not throwing an Exception?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •