dbPort = prop.getProperty("dbport");
dbDialet = prop.getProperty("hibernate.dialect");
dbPath = prop.getProperty("dbpath");
if (!(new File(dbPath).exists())){
throw new MyAlumniBaseException("myalumni.errorcode.00005");
}
if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_MYSQL)){
dbDialet = DBHelper.DB_TYPE_MYSQL;
}
else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_DB2)){
dbDialet = DBHelper.DB_TYPE_DB2;
}
else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_ORACLE)){
dbDialet = DBHelper.DB_TYPE_ORACLE;
}
else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_POSTGRESQL)){
dbDialet = DBHelper.DB_TYPE_POSTGRESQL;
}
else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_SYBASE)){
dbDialet = DBHelper.DB_TYPE_SYBASE;
}
} catch (IOException e) {
//logger.error(e.getMessage());
throw new MyAlumniBaseException("myalumni.errorcode.00003"); //Unable to read spring properties file.
}
finally {
try {
if (is != null) {
is.close();