I would like to get access to the Tomcat internal data from a servlet (or filter). In particular, I would like to read information about busy threads, from thread pool manager. So, my question is if it is possible at all (I can imagine that it could be blocked for safety reason)? If it's possible, maybe someone could give me any advice where to start (some entry point singleton, etc.)?
I know, that I could retrieve this information through the JMX. But I would rather prefer direct API (because the JMX is probably quite heavy, isn't it?).