tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: Adding <Host/> withOUT server restart?
Date Mon, 20 Dec 2004 12:30:45 GMT
Hello Robert,

you can to this via JMX MBeanFactory ( createStandardHost, 

   public String createStandardHost(String parent, String name,
                                     String appBase, boolean autoDeploy,
                                     boolean deployXML, boolean 
                                     boolean unpackWARs,
                                     boolean xmlNamespaceAware,
                                     boolean xmlValidation)

Parent is the Service MBean ( example "Catalina:type=Service")

You can configure a JMX Http Adaptor
     Add mx4j-tools.jar at bin/ - CLASSPATH
     Configure the JMX Http Adaptor at your server.xml
    <Connector protocol="AJP/1.3" mx.enabled="true" mx.httpPort="9050" 
mx.httpHost="localhost" />

Access the MBeans via http://localhost:9050 and search for the MBeanFactory.


Robert Hunt schrieb:

>Is there a way/example to add a virtual host programmatically *WITHOUT* having to edit
server.xml (adding another <Host/> node) and restarting the server?  (If you're about
to say, "Use the admin web app", then see this:
>[TC 5.0.25 on Win XP]

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message