[
https://issues.apache.org/jira/browse/AMQ-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13550385#comment-13550385
]
Timothy Bish commented on AMQ-4238:
-----------------------------------
The ManagementContext class does try to unregister all object that were
registered through it when stopped, but it looks like we could also safely add
the same:
{code}
// Unexport JMX RMI registry, if it was created
if (registry != null) {
try {
UnicastRemoteObject.unexportObject(registry, true);
LOG.debug("Unexported JMX RMI Registry");
} catch (NoSuchObjectException e) {
LOG.debug("Error occurred while unexporting JMX RMI registry.
This exception will be ignored.");
}
}
{code}
on line 200 where we currently null out or saved registry reference.
> Check AMQ JMX connector code if having same issue as CAMEL-5907
> ---------------------------------------------------------------
>
> Key: AMQ-4238
> URL: https://issues.apache.org/jira/browse/AMQ-4238
> Project: ActiveMQ
> Issue Type: Task
> Components: JMX
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 5.8.0
>
>
> See
> https://issues.apache.org/jira/browse/CAMEL-5907
> We may need similar fix at AMQ.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira