Results 1 to 5 of 5

Thread: poller receive timeout not respected?

  1. #1
    Join Date
    Jan 2007
    Posts
    107

    Question 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 at 05:47 PM.

  2. #2
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

    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.

  3. #3
    Join Date
    Jan 2007
    Posts
    107

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

    Default

    Thank you. I'm setting the target to 1.0.3.

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

    Default

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

    Thanks!
    -Mark

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
  •