Re: accessing settings in server.xml from the servlet

2006-11-01 Thread Mark Thomas
Alec Swan wrote: > Is it possible to get ahold of catalina engine from the servlet code and > then somehow inspect http connectors? Take a look at http://wiki.apache.org/tomcat/HowTo#head-42e95596753a1fa4a4aa396d53010680e3d509b5 Mark -

RE: accessing settings in server.xml from the servlet

2006-11-01 Thread Caldarale, Charles R
> From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: Re: accessing settings in server.xml from the servlet > > Is there a way to access settings in server.xml without > MBeans? Other than rolling your own infrastructure, probably not, at least not easily. That's what MB

Re: accessing settings in server.xml from the servlet

2006-11-01 Thread Alec Swan
alina engine from the servlet code and then somehow inspect http connectors? Thanks. On 11/1/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: accessing settings in server.xml from the servlet > > how can a servlet acc

RE: accessing settings in server.xml from the servlet

2006-11-01 Thread Caldarale, Charles R
> From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: accessing settings in server.xml from the servlet > > how can a servlet access maxThreads settings defined in server.xml? Usually via JMX. This is your rather terse starting point: http://tomcat.apache.org/tomcat-5.5-doc/mbean

accessing settings in server.xml from the servlet

2006-11-01 Thread Alec Swan
Hi, how can a servlet access maxThreads settings defined in server.xml? I tried getServletContext(), getServletConfig(), getInitParameter(..), getAttribute(..), etc, but I still can't find a way to access server.xml configuration. I guess I need to get ahold of the catalina engine and the get the