Re: adding a virtual host with jmx

2008-09-02 Thread Olivier Vergès
it works in part, i have done this to add a ssoagentvalve: * String vname = "Catalina:type=Valve,name=SSOAgentValve,host=" + nameVH; ObjectName ovalve = new ObjectName(vname); Object valve = server.instantiate("org.josso.tc60.agent.SSOAgentValve"); org.apache.tomcat.util

Re: adding a virtual host with jmx

2008-09-02 Thread Olivier Vergès
I've found these * ObjectName loader = new ObjectName("Catalina:type=ServerClassLoader,name=common"); ** MBeanServer server = java.lang.management.ManagementFactory.getPlatformMBeanServer(); * but registry is not in my JMX. O.V 2008/9/2 Olivier Vergès <[EMAIL PRO

Re: adding a virtual host with jmx

2008-09-02 Thread Olivier Vergès
me, null},> > new String[]> > > {"java.lang.Object","java.lang.String","java.lang.String"});> > > server.setAttribute(ohost, new Attribute("appBase", appBase));> > // Set > more attributes, and aliases etc here> > // Things li

Re: adding a virtual host with jmx

2008-09-01 Thread Olivier Vergès
>// Start your contexts here, if you don't have automatic deployment set. > > As long as you follow Tomcat's naming conventions for ObjectNames, invoking > "start" will automagically add the new elements to where they should live. > You can get the values fo

Re: adding a virtual host with jmx

2008-07-31 Thread Olivier Vergès
contexts here, if you don't have automatic deployment set. > > As long as you follow Tomcat's naming conventions for ObjectNames, invoking > "start" will automagically add the new elements to where they should live. > You can get the values for the "loader" a

adding a virtual host with jmx

2008-07-30 Thread Olivier Vergès
hi all, I'm creating a web application for auto deploying virtual host through apache and tomcat on a production server. Everything is ok except for the Tomcat part: As tomcat can't be reloaded and as i can't restart anytime I want, I 've heard jmx was great cause it was possible to modify a run