#DB Properties
db.driver="driverclassname"
db.url=jdbc:mysql://localhost:3306/YOURDBNAME
db.username=USERNAME
db.password=PASSWORD
/resources/dbconfig.propreties/
private ResourceBundle reader = null;
try{
reader = ResourceBundle.getBundle("dbconfig.properties");
Connection conn=DriverManager.getConnection(reader.getString("db.url"),reader.getString("db.username"),reader.getString("db.password"));
}catch(Exception e){
}