manveen 02/03/14 16:45:28 Modified: catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java Log: The key property representing the hostName in a host mBean objectName is "name" Revision Changes Path 1.13 +5 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java Index: MBeanFactory.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- MBeanFactory.java 8 Mar 2002 23:59:26 -0000 1.12 +++ MBeanFactory.java 15 Mar 2002 00:45:28 -0000 1.13 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.12 2002/03/08 23:59:26 amyroh Exp $ - * $Revision: 1.12 $ - * $Date: 2002/03/08 23:59:26 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.13 2002/03/15 00:45:28 manveen Exp $ + * $Revision: 1.13 $ + * $Date: 2002/03/15 00:45:28 $ * * ==================================================================== * @@ -110,7 +110,7 @@ * <code>org.apache.catalina.core.StandardServer</code> component.</p> * * @author Amy Roh - * @version $Revision: 1.12 $ $Date: 2002/03/08 23:59:26 $ + * @version $Revision: 1.13 $ $Date: 2002/03/15 00:45:28 $ */ public class MBeanFactory extends BaseModelMBean { @@ -979,7 +979,7 @@ // Acquire a reference to the component to be removed ObjectName oname = new ObjectName(name); String serviceName = oname.getKeyProperty("service"); - String hostName = oname.getKeyProperty("host"); + String hostName = oname.getKeyProperty("name"); Server server = ServerFactory.getServer(); Service service = server.findService(serviceName); Engine engine = (Engine) service.getContainer();
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>