Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How do *you* deal with finding properties files?

Reply
Thread Tools

How do *you* deal with finding properties files?

 
 
Paul Guermonprez
Guest
Posts: n/a
 
      07-09-2003
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.


Spammay Blockay wrote:
> 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
>


 
Reply With Quote
 
 
 
 
Spammay Blockay
Guest
Posts: n/a
 
      07-09-2003
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

--

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMD64 or Semperon, deal or no deal? Tad Confused Computer Information 7 04-13-2006 05:43 PM
wihout using java reflection api finding the properties of a class ravi Java 3 02-08-2006 11:40 PM
Finding Server... Finding Host.... enough already!!! Leesa_Tay@softhome.net Computer Support 2 01-20-2006 10:23 AM
deal or no deal rbt Python 7 12-28-2005 08:57 PM
finding properties!! michele Computer Support 3 11-26-2003 09:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57