cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1417822 - /cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java
Date Thu, 06 Dec 2012 13:10:03 GMT
Author: ay
Date: Thu Dec  6 13:10:02 2012
New Revision: 1417822

URL: http://svn.apache.org/viewvc?rev=1417822&view=rev
Log:
avoid jmx server being overwritten in standalone case

Modified:
    cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java

Modified: cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java?rev=1417822&r1=1417821&r2=1417822&view=diff
==============================================================================
--- cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java
(original)
+++ cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/jmx/MBServerConnectorFactory.java
Thu Dec  6 13:10:02 2012
@@ -122,7 +122,9 @@ public final class MBServerConnectorFact
 
     public void createConnector() throws IOException {
         
-        server = MBeanServerHolder.INSTANCE;
+        if (server == null) {
+            server = MBeanServerHolder.INSTANCE;
+        }
         
         // Create the JMX service URL.
         JMXServiceURL url = new JMXServiceURL(serviceUrl);       



Mime
View raw message