Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2003

Tip: Looking for answers? Try searching our database.

How do *you* deal with finding properties files?

Thread view: 
Spammay Blockay - 09 Jul 2003 08:48 GMT
As a followup to my previous posts, what method do YOU use for finding
properties files?  I'm not talking about things that are doing to be
displayed, necessarily.  More along the lines of this... let's say you've
got 5 properties files:

   global.properties
   database.properties
   log.properties
   xyz.properties
   otherstuff.properties

Each properties file deals with a different subsystem in, say, a web application.
These properties must also be read by several standalone applications running on
the same machine.

How would you make sure you find them?  Would you hard-code all the properties
files names?  Just the global one, and all the others would be named in the
global properties?  Would all properties file paths be handed to the app via
System properties?  Would they be found in the classpath?

I'm looking for a good, all-encompassing, systematized way of dealing with
multiple properties files.

- Tim

--
Paul Guermonprez - 09 Jul 2003 08:32 GMT
do you know "Preferences", in java 1.4.X ?
you don't even need to know if they are files or
windows registry entries, or in memory  ...

just get/put preferences for a specific classname or a string
and you will get/put them directly.

paul.

> As a followup to my previous posts, what method do YOU use for finding
> properties files?  I'm not talking about things that are doing to be
[quoted text clipped - 20 lines]
>
> - Tim


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.