Three ways:
1. You can access
via JMX then retrieve needed info.
2. Use Tomcat Manager list command via http
http://localhost:8080/manager/list it will return plaintext response, which look like this:
Response can be parsed using regular expressions if needed.
3. write screen scrapper for Tomcat Manager's web GUI (use httpclient-it represents the dom tree of the html documet - easy to retrieve the information).
[ February 20, 2008: Message edited by: Pavel Cherkashin ]
Pavel Cherkashin - <br />SCJP, SCWCD, SCDJWS, SCBCD, SCEA, ...<br />www.linkedin.com/in/pcherkas