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

Access to ConnectionEventListeners in RA's ActiveMQManagedConnection is not synchronized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0.0, 5.1.0
    • 5.2.0
    • JCA Container
    • None
    • Patch Available

    Description

      When the RA's connection to the broker fails and the <i>ActiveMQManagedConnection.onException()</i> method is called, all the registered <i>ConnectionEventListener</i>s are notified.
      At least in Glassfish, the registered listener then calls the <i>ActiveMQManagedConnection.removeConnectionEventListener()</i> to unregister itself. This causes a <i>java.util.ConcurrentModificationException</i> to be thrown since the <i>ConnectionEventListener</i> collection is modified while the <i>onException()</i> iterates over it.

      Kai

      Attachments

        1. amq-1777.patch
          7 kB
          Kai Hudalla

        Activity

          People

            rajdavies Robert Davies
            hudalla Kai Hudalla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: