previous |
start |
next
Connecting to the Database
- Decouple connection management from the other database
code
- You can use the SimpleDataSource class to do this
- Call its static init method with the name of the
database configuration file
- Configuration file is a text file containing four lines
- jdbc.driver = ...
- jdbc.url = ...
- jdbc.username = ...
- jdbc.password = ...
previous |
start |
next