ActiveMQ
  1. ActiveMQ
  2. AMQ-615

org.apache.activemq.pool sessions should not allow you to create consumers

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0 M4
    • Fix Version/s: 4.0 RC2
    • Component/s: JMS client
    • Labels:
      None

      Description

      The create consumer methods should throw JMSExceptions since using consumers with pooled sessions would result in non deterministic behaviour.

        Activity

        Hide
        Hiram Chirino added a comment -

        Well the non deterministic behaviour was due to the consumers not being closed() when the session closed().

        Show
        Hiram Chirino added a comment - Well the non deterministic behaviour was due to the consumers not being closed() when the session closed().
        Hide
        Hiram Chirino added a comment -

        If the Pooled Sesion keeps track of it's consumers then it could close them on session.close()

        Show
        Hiram Chirino added a comment - If the Pooled Sesion keeps track of it's consumers then it could close them on session.close()
        Hide
        Hiram Chirino added a comment -

        The pooled session now tracks the consumers it creates so it can properly close them when it's closed.
        I think this should resolve the last undertermistic behaviour, but we may be missing something else.

        Show
        Hiram Chirino added a comment - The pooled session now tracks the consumers it creates so it can properly close them when it's closed. I think this should resolve the last undertermistic behaviour, but we may be missing something else.

          People

          • Assignee:
            Hiram Chirino
            Reporter:
            Hiram Chirino
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development