Qpid
  1. Qpid
  2. QPID-2621

Calling QueueBrowser.getEnumeration on a stopped connection will hang

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: M3, M4, 0.5, 0.6
    • Fix Version/s: 0.15
    • Component/s: Java Client
    • Labels:
      None

      Description

      We use a non-consuming recevier to implement a QueueBrowser, as a result the connection must be started for it to work.

      The ActiveMQ list documented (in 2004) its behaviour against JBoss: http://osdir.com/ml/java.activemq.devel/2005-04/msg00046.html

      ActiveMQ reports empty set JBoss gives queue data.

      I think an empty list gives the wrong idea and technically we can't easily provide the queue data.

      So the best thing to do would be to throw an IllegalStateException to highlight the issue.

      Will attach test

        Activity

        Hide
        Robbie Gemmell added a comment -

        Looks good to me.

        Show
        Robbie Gemmell added a comment - Looks good to me.
        Hide
        Rob Godfrey added a comment -

        Robbie - would you be so good as to review?

        Show
        Rob Godfrey added a comment - Robbie - would you be so good as to review?

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Martin Ritchie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development