tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: number of worker threads in Tomcat 6
Date Sun, 14 Sep 2008 14:18:50 GMT
André Warnier wrote:
> Madhav wrote:
>> Hi André,
>>
>> Thanks for the reply, but the link is about configuring Tomcat which I
>> know.
>> What I'm looking for is how to get these information inside servlet,
>> i.e. in
>> java code. Please let me know that or point me to any resource if you
>> know
>> that.
>>
> I don't really know.
> But I can imagine that, from within your servlet, you might be able to
> "move back up the hierarchy" starting from e.g. the ServletRequest or
> ServletContext, back up to the Host, the Engine, to the Connector, and
> then to its properties, no ?
> Or maybe that is not possible for security reasons ?

You can do that. You'll probably need to make your app privileged to do it
(I haven't tested it).

Take a look at how the manager app does it for the status page.

Mark



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


Mime
View raw message