Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do I read the contents of the context.xml file?

 
Enrico Ascaruta Tangau
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
looking through your post I could not find the answer ...

I'm working on a web application under Tomcat 5.5 and I need to create a page to show (read only) configuration data of the web-server and database (server version, driver version in use, address the db, etc. ), just like the page of "tomcat administration tool".

someone kindly good advice? :-)

Meanwhile I was tempting on this road:
I've already reached out to other purposes for a method to encapsulate the data in a XML file into a bean, but I can not retrieve the path to the context.xml, how can I do?

thaks, bye!
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat has a thing called the "Management EJB". Check it out.

Also, Tomcat supports JMX.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic