Ignore:
Timestamp:
2004-12-06T11:44:03+13:00 (20 years ago)
Author:
schweer
Message:

user authentication works; user information and subscriptions/predicates are stored to thedatabase

Location:
trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database/DatabaseException.java

    r8717 r8738  
    2020        super(message, cause);
    2121    }
     22
     23    /**
     24     * @param string
     25     */
     26    public DatabaseException(String message) {
     27        super(message);
     28    }
    2229}
  • trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database/DatabaseManager.java

    r8717 r8738  
    3737    public Connection getDatabaseConnection() throws DatabaseException {
    3838        if(database == null) {
    39             String connectionString = "jdbc:mysql://localhost/alerting";
     39            String connectionString = "jdbc:mysql://localhost/alerting?user=gsdl3admin";
    4040            try {
    4141                Class.forName("com.mysql.jdbc.Driver").newInstance();
    42                 Connection connection = DriverManager.getConnection(connectionString);
     42                database = DriverManager.getConnection(connectionString);
    4343            } catch (Exception e) {
    4444                throw new DatabaseException("Could not establish connection to database (" + connectionString + ")", e);
Note: See TracChangeset for help on using the changeset viewer.