You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "David Valeri (JIRA)" <ji...@apache.org> on 2010/03/31 21:45:27 UTC

[jira] Commented: (CXF-2742) CXF MBeans are not unregistered/reregistered properly on CXF Bus shutdown and restart controlled by Spring DM

    [ https://issues.apache.org/jira/browse/CXF-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852072#action_12852072 ] 

David Valeri commented on CXF-2742:
-----------------------------------

It would appear that there are two issues at play here:

1) The instructions for enabling JMX in ServiceMix do not specify that InstrumentationManagerImpl#createMBServerConnectorFactory should probably be false inside of ServiceMix as one would want to use only the connectors managed by the container.

2) If createMBServerConnectorFactory is set to true, something goes awry in the InstrumentationManagerImpl shutdown sequence as the connector is left open and the restart of InstrumentationManagerImpl  with the bundle restart fails due to the address already being in use.  InstrumentationManagerImpl#shutdown, which handles cleanup of the connector, is never called during Bus shutdown.

> CXF MBeans are not unregistered/reregistered properly on CXF Bus shutdown and restart controlled by Spring DM
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-2742
>                 URL: https://issues.apache.org/jira/browse/CXF-2742
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus
>    Affects Versions: 2.2.6, 2.2.7
>            Reporter: David Valeri
>
> When initializing CXF in a Spring context file using the standard CXF Spring XML imports and the standard CXF namespace handlers for CXF Bus configuration, a restart of the Spring application context triggered by Spring DM in an OSGi container results in the CXF registered MBeans disappearing.  The MBeans will not reappear until the JVM hosting the OSGi container is restarted.

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