tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Using Context/Manager with custom nested element
Date Fri, 29 Jan 2010 10:10:26 GMT
On 29/01/2010 00:31, Martin Grotzke 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?

If the MyManager class has a field called fooBar, with matching getter 
and setter, then (my guess, based on how Valves work, is that) you can 
probably set it by doing this:

<Manager className="org.app.MyManager" fooBar="somevalue">

</Manager>


p

> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message