This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "db settings" Watch "db settings" New topic

db settings

Marie Mazerolle
Ranch Hand

Joined: Oct 01, 2002
Posts: 81
If I want to store my db, host and other general information in one location, what is the recommended approach? A properties file?
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.

subject: db settings