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

Polling consumer does not work well with transacted ActiveMQ 5.3.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.0.0, 2.1.0, 2.2.0
    • 2.8.0
    • camel-jms
    • None
    • Regression

    Description

      A bean in a activemq route is consuming messages from another activemq queue. Instead of reading all queued messages, it always gets just the first message in the queue.

      while ((exchange = consumer.receive("activemq:queue", 2000l)) != null) {
              ...
      }
      
      • This did not happen with ActiveMQ 5.2.0
      • This does not happen if Spring transaction support is not set for activemq component.
      • This does not happen if consumer bean is invoked from direct: route.

      Attachments

        1. JmsPollingConsumerTest.patch
          7 kB
          Dragisa Krsmanovic

        Activity

          People

            davsclaus Claus Ibsen
            dragisak Dragisa Krsmanovic
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: