wood burning stoves 2.0*
The moose likes JDBC and the fly likes db settings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "db settings" Watch "db settings" New topic
Author

db settings

Marie Mazerolle
Ranch Hand

Joined: Oct 01, 2002
Posts: 81
Hello,
If I want to store my db, host and other general information in one location, what is the recommended approach? A properties file?
Thanks,
Marie
Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
if it is static data, the a PropertyResourceBundle is quite easy to use.
I say static because I havent tried to write updated data back to the resource bundle yet - so im not sure how easy that is.


SCJP 1.2, SCJP 5, SCBCD
 
Don't get me started about those stupid light bulbs.
 
subject: db settings
 
Similar Threads
Storing Files
[Error] Cannot enlist resource, transaction not active
Cannot find file / dbpath not correct
User and Password
MouseEvent on JTable