ActiveMQ
  1. ActiveMQ
  2. AMQ-2171

Browse queue hangs with prefetch = 0

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.5.0
    • Component/s: JMS client
    • Labels:
      None
    • Environment:

      Description

      Browsing a queue with prefetch = 0 blocks on the first read, see attached test case.

      1. AMQ2171.java
        3 kB
        Robert Gibson

        Activity

        Hide
        Robert Gibson added a comment -

        To be honest, I've only just started using ActiveMQ so perhaps this is expected behaviour - but I'm trying to program against the JMS API and it least to be counter to the spec for an enumeration to block on the hasMoreElements.

        Show
        Robert Gibson added a comment - To be honest, I've only just started using ActiveMQ so perhaps this is expected behaviour - but I'm trying to program against the JMS API and it least to be counter to the spec for an enumeration to block on the hasMoreElements.
        Show
        Robert Gibson added a comment - See also http://www.nabble.com/Forcing-queue-flush-through-to-consumers-browsers--to22621755.html and AMQ-2172
        Hide
        Timothy Bish added a comment -

        fixed in trunk.

        Show
        Timothy Bish added a comment - fixed in trunk.

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Robert Gibson
          • Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development