You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "ASF GitHub Bot (JIRA)" <se...@james.apache.org> on 2015/10/19 16:46:05 UTC

[jira] [Commented] (JAMES-1609) JMX unregister of queues : some queues are ignored.

    [ https://issues.apache.org/jira/browse/JAMES-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14963407#comment-14963407 ] 

ASF GitHub Bot commented on JAMES-1609:
---------------------------------------

Github user mbaechler closed the pull request at:

    https://github.com/apache/james/pull/8


> JMX unregister of queues : some queues are ignored.
> ---------------------------------------------------
>
>                 Key: JAMES-1609
>                 URL: https://issues.apache.org/jira/browse/JAMES-1609
>             Project: James Server
>          Issue Type: Bug
>          Components: Queue
>    Affects Versions: Trunk
>            Reporter: Tellier Benoit
>             Fix For: Trunk
>
>
> The @PreDestoy method called look like this :
> ```
> for ( String mbean : mbeans) {
>     unregister(mbean);
>     mbeans.remove(mbean);
> }
> ```
> Causing mbeans being ignored and not unregistered.
> Solution is to simply not modify collection content while working on it and simply clear it outside the for loop.
> Acceptance criteria :
>  - Being able to launch a James server, stop it and restart it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org