PropertyResourceBundle files > when to use and where to place in Tomcat?

hi all,

In a previous project, I saw that several properties-files were used to save environment-specific settings like the login to our database, the login to LDAP etc etc...

Now, in a new project, I'm investigating it a bit more and several websites say to use property-files for language-and-locale specific things (like labels,....). Isn't it common to use it also for configuration parameters that can change over time, or isn't that the intention of resourcebundles?

secondly, i'm struggling to make it work in my tomcat. i have a very simple test-application that reads values out of the file. when i place the file in the same folder as my java files, it becomes packaged in my war file in the same directory al my class-files, and then it works.

But how should I do it, when I don't want the file in my war ?

I tried to drop the properties file almost everywhere on my filesystem, but it always crashes and says "can not find resourcebundle"...

(i work with tomcat 5.5.23).

[1033 byte] By [Sunneke31a] at [2007-11-27 10:14:49]
# 1

ok, meanwhile, i found a location where tomcat finds it.

tomcat\common\classes.

but, what should i do when i want them at another location?

and do i use the property-files for what they are intended to be used for?

(now i use them for params that may change in the future - external ip addresses,....)

Sunneke31a at 2007-7-28 15:35:43 > top of Java-index,Java Essentials,New To Java...