This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: db settings
 
Similar Threads
User and Password
Storing Files
Cannot find file / dbpath not correct
[Error] Cannot enlist resource, transaction not active
MouseEvent on JTable