aspose file tools*
The moose likes Tomcat and the fly likes how do I read the contents of the context.xml file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how do I read the contents of the context.xml file?" Watch "how do I read the contents of the context.xml file?" New topic
Author

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

Enrico Ascaruta Tangau
Greenhorn

Joined: Aug 23, 2010
Posts: 11
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

Joined: Jun 25, 2001
Posts: 16065
    
  21

Tomcat has a thing called the "Management EJB". Check it out.

Also, Tomcat supports JMX.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do I read the contents of the context.xml file?