File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: db settings