You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Kai Hudalla (JIRA)" <ji...@apache.org> on 2008/06/06 15:32:00 UTC

[jira] Updated: (AMQ-1777) Access to ConnectionEventListeners in RA's ActiveMQManagedConnection is not synchronized

     [ https://issues.apache.org/activemq/browse/AMQ-1777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kai Hudalla updated AMQ-1777:
-----------------------------

    Attachment: amq-1777.patch

Patch that creates a shallow copy of the <i>ConnectionEventListener</i> collection before iterating over it.

> Access to ConnectionEventListeners in RA's ActiveMQManagedConnection is not synchronized
> ----------------------------------------------------------------------------------------
>
>                 Key: AMQ-1777
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1777
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JCA Container
>    Affects Versions: 5.0.0, 5.1.0
>            Reporter: Kai Hudalla
>            Priority: Minor
>         Attachments: amq-1777.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.