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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to