public static Connection getConnection(){
String url = "DBURL";
String user = "spadmin";
String pwd = "p1213#%$#^$%#&^";
Connection connection;
log.error("Intializing connection");
Properties connectionProperties = new Properties();
connectionProperties.put("user", user);
connectionProperties.put("password", context.decrypt(pwd));
connection = DriverManager.getConnection(url, connectionProperties);
return connection;
}
No comments:
Post a Comment