Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1618

Improper handling of container restrictions in creation of sessions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.1, 5.0.0
    • 5.1.0
    • None
    • All

    Description

      In the getServerSession() method of org.apache.activemq.ra.ServerSessionPoolImpl there is an issue with the code block given below

      ServerSessionImpl ss = createServerSessionImpl();
      // We may not be able to create a session due to the container
      // restricting us.
      if (ss == null) {
      if (idleSessions.size() == 0)

      { throw new JMSException("Endpoint factory did not allows to any endpoints."); }

      return getExistingServerSession();
      }

      If the container restricts the creation of a session then messages should be queued to an existing session. So the check should be

      if (activeSessions.size() == 0) { throw new JMSException("Endpoint factory did not allows to any endpoints."); }

      instead of the one above

      Attachments

        Activity

          People

            djencks David Jencks
            manucet Manu T George
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: