Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class ConnectorDB {
  2. public static Connection getConnection() throws SQLException {
  3. ResourceBundle resource = ResourceBundle.getBundle("database");
  4. String url = resource.getString("db.url");
  5. String user = resource.getString("db.user");
  6. String pass = resource.getString("db.password");
  7. return DriverManager.getConnection(url, user, pass);
  8. }
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement