This is true.

I'm trying to create a /status page for my application and it's dependencies
(ip address/dns name); one of these dependencies is the db, which is
configured in the context.xml file....

I guess I could use the regular java file io stuff, but I was wondering if
there was anything else I could call.

But that works pretty well :-) Thanks!


Pid * wrote:
> 
> On 06/05/2010 16:30, kgaekwad wrote:
>> 
>> Hello,
>> 
>> Is there a way to read the context.xml stored in /conf/ folder from a
>> webapplication?
> 
>  String pathToContextXmlFile = "...";
>  File contextXmlFile = new File(pathToContextXmlFile);
> 
> Why would you want to do such a thing?
> 
> 
> p
> 
> 
> 
>  
> 

-- 
View this message in context: 
http://old.nabble.com/Reading-tomcat-context.xml-file-from-webapp-tp28475444p28476767.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to