public static void setServletName(String servletName) {
configHash.put("ServletName",servletName);
}
-
+
/**
* Returns the property asked for by pulling it out a HashMap
* @param a String containing the property name (key)
return (String)configHash.get("Home") +
(String)configHash.get(propName);
}
-
+
public static void addBroker(String driver, String URL) throws StorageObjectException {
String username,passwd,min,max,log,reset,dbname,dblogfile;
min=getProp("Database.poolMin");
max=getProp("Database.poolMax");
dbname=getProp("Database.Name");
- log=getProp("Home") + configHash.get("Database.PoolLog");
+ log=getProp("Home")+ configHash.get("Database.PoolLog" + ".pool");
reset=getProp("Database.poolResetTime");
dblogfile=getPropWithHome("Database.Logfile");
-
+
System.err.println("-- making Broker for -"
+driver+" - " +URL
+ " log " + log + " user "
meta.setCacheEnabled(true);
//meta.setDebugging(true);
meta.setLogFile(dblogfile);
-
+
JDBCPool pool = SQLManager.getInstance().createPool(meta);
-
+
if (pool!=null){
instances++;
brokerHash.put("Pool.broker",pool);