Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1497

JmsPollingConsumer - receive does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1, 2.0-M2
    • camel-jms
    • None
    • Regression

    Description

      The timeout values to set on Spring JmsTemplate is wrong. We should uses the provided constants on JmsTemplate for this

      	/**
      	 * Timeout value indicating that a receive operation should
      	 * check if a message is immediately available without blocking.
      	 */
      	public static final long RECEIVE_TIMEOUT_NO_WAIT = -1;
      
      	/**
      	 * Timeout value indicating a blocking receive without timeout.
      	 */
      	public static final long RECEIVE_TIMEOUT_INDEFINITE_WAIT = 0;
      

      Is the correct values. Looks like the values was reverted in the camel-jms code

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: