-----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() >> > > Why? Just use: > > new FileInputStream(new File(System.getProperty("catalina.base"), > "conf/yourfile.properties")); Heh. We always ride people for using the filesystem and here Konstantin goes suggesting that someone use it :) Cid, the short answer is that catalina.base isn't available via any default ClassLoader. If you wanted to, you could place the file into Tomcat's lib directory, but that has it's disadvantages, too. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1kFOkACgkQ9CaO5/Lv0PBMiwCeP4saNJjge0H4MNdGjmsj8GAX B6QAoKCVtUtGi1thNck0t2/rCPxPdt1L =sHvu -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org