tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1443872 - /tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java
Date Fri, 08 Feb 2013 08:24:36 GMT
Author: kfujino
Date: Fri Feb  8 08:24:36 2013
New Revision: 1443872

URL: http://svn.apache.org/r1443872
Log:
Don't use a hard-coded domain name.

Modified:
    tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java

Modified: tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java?rev=1443872&r1=1443871&r2=1443872&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/storeconfig/StoreConfigLifecycleListener.java Fri
Feb  8 08:24:36 2013
@@ -90,7 +90,7 @@ public class StoreConfigLifecycleListene
         MBeanServer mserver = MBeanUtils.createServer();
         InputStream descriptor = null;
         try {
-            ObjectName objectName = new ObjectName("Catalina:type=StoreConfig" );
+            ObjectName objectName = new ObjectName(server.getDomain() + ":type=StoreConfig"
);
             if (!mserver.isRegistered(objectName)) {
                 registry.registerComponent(storeConfig, objectName, "StoreConfig");
             }



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


Mime
View raw message