separeted pool log from dbentitylog
authorrk <rk>
Fri, 8 Feb 2002 00:08:32 +0000 (00:08 +0000)
committerrk <rk>
Fri, 8 Feb 2002 00:08:32 +0000 (00:08 +0000)
source/mir/misc/MirConfig.java

index c8b0de7..52fd9b7 100755 (executable)
@@ -59,7 +59,7 @@ public class MirConfig extends Configuration {
   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)
@@ -79,7 +79,7 @@ public class MirConfig extends Configuration {
     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;
@@ -90,10 +90,10 @@ public class MirConfig extends Configuration {
       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 "
@@ -111,9 +111,9 @@ public class MirConfig extends Configuration {
       meta.setCacheEnabled(true);
       //meta.setDebugging(true);
       meta.setLogFile(dblogfile);
-      
+
       JDBCPool pool = SQLManager.getInstance().createPool(meta);
-          
+
       if (pool!=null){
         instances++;
         brokerHash.put("Pool.broker",pool);