Re: Reading a file in tomcathome/conf folder

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 2/17/2011 5:23 AM, Konstantin Kolinko wrote: 2011/2/17 Captain Cid captain_...@indiatimes.com: Yes ..got your point...using spring its easy though My only question is , can it be accessed using classloader and getResource()

Re: Reading a file in tomcathome/conf folder

2011-02-20 Thread Pratyush Chandra
commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Reading-a-file-in-tomcathome-conf-folder-tp30947709p30972865.html Sent from the Tomcat - User mailing list archive at Nabble.com

Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
().getParent() but coudnt ! -- View this message in context: http://old.nabble.com/Reading-a-file-in-tomcathome-conf-folder-tp30947709p30947709.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Brett Delle Grazie
Hi, On 17 February 2011 08:36, Captain Cid captain_...@indiatimes.com wrote: I wish to keep configuration property file outside my war. Suppose i keep it tomcathome/conf/myfile.properties How can I read it using classloader from my webapp application code. I am not able to access it. I

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Captain Cid
, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://old.nabble.com/Reading-a-file-in-tomcathome-conf-folder-tp30947709p30948198.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Konstantin Kolinko
2011/2/17 Captain Cid captain_...@indiatimes.com: Yes ..got your point...using spring its easy though My only question is , can it be accessed using classloader and getResource() Why? Just use: new FileInputStream(new File(System.getProperty(catalina.base), conf/yourfile.properties));