tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grotzke <martin.grot...@javakaffee.de>
Subject Re: Using Context/Manager with custom nested element
Date Fri, 29 Jan 2010 06:29:58 GMT
Hi Jason,

thanx for your confirmation. Your proposed solution is what I wanted to
avoid...

Thanx && cheers,
Martin


On Thu, 2010-01-28 at 18:20 -0800, Jason Brittain wrote:
> You're right that you would need to modify Tomcat's code to do that.
> Commons-digester
> would need to be told how to read a new nested element.  Without modifying
> the code,
> you may, however, be able to get away with something like:
> 
> <Manager className="org.app.MyManager" foo="foo" bar="bar">
> 
> .. where your custom MyManager class has String properties foo and bar.
> 
> --
> Jason Brittain
> Mulesoft http://www.mulesoft.com
> 
> 
> On Thu, Jan 28, 2010 at 4:31 PM, Martin Grotzke <
> martin.grotzke@javakaffee.de> wrote:
> 
> > Hi,
> >
> > is it somehow possible to have a custom nested element below the Manager
> > element in server.xml/context.xml? E.g.
> >
> > <Manager className="org.app.MyManager">
> >  <FooBar foo="bar"/>
> > </Manager>
> >
> > where the MyManager class has a property fooBar?
> >
> > AFAICS the ContextRuleSet defines what's possible in the Context element
> > without any hook - so it seems that there's no possibility to achieve
> > this.
> >
> > If someone could tell me that I'm wrong with this asumption I would be
> > happy! :-)
> >
> > Thanx && cheers,
> > Martin
> >
> > --
> > Martin Grotzke
> > http://www.javakaffee.de/blog/
> >
-- 
Martin Grotzke
http://www.javakaffee.de/blog/

Mime
View raw message