Announcement Announcement Module
Collapse
No announcement yet.
poller receive timeout not respected? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • poller receive timeout not respected?

    Hi,

    I've noticed that setting the poller receive timeout as follows:

    Code:
        <poller id="poller2" task-executor="pool2" receive-timeout="60000">
            <interval-trigger interval="250" fixed-rate="false" />
        </poller>
    does not result in the following being invoked with the right value.

    Code:
    public class PollingConsumer extends AbstractPollingEndpoint {
    	public void setReceiveTimeout(long receiveTimeout) {
    		this.receiveTimeout = receiveTimeout;
    	}
    }
    Is the above custom namespace xml supposed to correspond to the java code below? So should the setter receive a timeout value of 60000? It is instead receiving 1000. If they don't correspond how can that value be configured?

    Also even though we have two pollers both setting receive timeout the above method is only invoked for the second poller. Why would that be the case?

    Much appreciate your help.
    Last edited by Narada; Jun 10th, 2009, 05:47 PM.

  • #2
    This type of thing I'd create a JIRA issue for. If it turns out not to be a bug we can improve the documentation. I think it is a bug though.

    Comment


    • #3
      Filed: http://jira.springframework.org/browse/INT-680. Thanks.

      Comment


      • #4
        Thank you. I'm setting the target to 1.0.3.

        Comment


        • #5
          This is now resolved. If you get a chance, please try it with the current (SVN head) version.

          Thanks!
          -Mark

          Comment

          Working...
          X