Package com.activesession.util

Examples of com.activesession.util.PropertieReader


  public MysqlSession() {
    super();
    //TODO implement some functionality to read from configuration file
   
    try {
      PropertieReader reader = new PropertieReader();
     
      this.username = reader.getPropertieData().get("username");
      this.password = reader.getPropertieData().get("password");
      this.url = reader.getPropertieData().get("url");
     
      Class.forName("com.mysql.jdbc.Driver");
      connect = DriverManager.getConnection(url, username, password);
     
      setConnect(connect);
View Full Code Here


 
  public MysqlSession(String path) {
    super();

    try {
      PropertieReader reader = new PropertieReader();
      reader.setPath(path);
     
      this.username = reader.getPropertieData().get("username");
      this.password = reader.getPropertieData().get("password");
      this.url = reader.getPropertieData().get("url");
     
      Class.forName("com.mysql.jdbc.Driver");
      connect = DriverManager.getConnection(url, username, password);
     
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.activesession.util.PropertieReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.