File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 10
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: 14475
    
    7

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how do I read the contents of the context.xml file?
 
Similar Threads
JAMon and DataSources
changing a web application's URL
Context Question
Reload/Compile Jsp pages after updating XML file on webserver
About server.xml in Tomcat