tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Verg├Ęs" <olivier.ver...@gmail.com>
Subject Re: adding a virtual host with jmx
Date Tue, 02 Sep 2008 19:13:49 GMT
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.modeler.Registry.getRegistry().registerComponent(valve,
vname, null);

      *
but the *controller* and *containerName* stay empty. So I've tried to use
that :
* server.setAttribute(ovalve, new
Attribute("containerName","Catalina:type=Host,host=" + nameVH ));

  *And it doesn't work for both of them cause theses are not writable.
I'm going to try to use the host's function addchild  but that was my first
problem: this function doesnt' seem to work and i'm not sure that it will
fill the two missing parameters on the valve...

So, anyone got an idea?

O.V

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message