Ian Huynh wrote:
> 
> I need to extend (tweak) a few behaviors in
> org.apache.catalina.valves.CertificatesValve without
> having to recompile TC.  Is there a way to configure TC
> to use a custom CertificateValve?


 If you get a better answer, go with it, but for what it's worth,
there's code like this in o.a.c.startup.ContextConfig:

  // Instantiate a new CertificatesValve if possible
  Valve certificates = null;
  try {
    Class clazz =
      Class.forName("org.apache.catalina.valves.CertificatesValve");
    certificates = (Valve) clazz.newInstance();
    } catch (Throwable t) {
      return;     // Probably JSSE classes not present
    }

 It's theoretically possible to replace ContextConfig
using somthing like this in server.xml:

  <Context configClass="my.very.own.ContextConfig" ... />

You'd need to double check if it works properly in 4.0.X,
there may have been some problems that are only fixed in
cvs HEAD. I'm not sure that would be such a good idea,
though. The standard config classes  are tightly coupled
with their configurees, and it would be easy to break 
obscure assumptions.


> Not sure if this is the right forum but hopefully
> someone may have an idea.


It would probably be a good idea to try this one out on
tomcat-dev. I'd include some details on what exactly
you're trying to do, and why, and what else you've
tried. There may be a less dangerous solution.

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to