src/java/wqm/utils/WQMTools.java
@@ -6,6 +6,7 @@ |
package wqm.utils; |
|
import csip.Config; |
+import csip.SessionLogger; |
import java.net.MalformedURLException; |
import java.net.URL; |
import java.sql.Connection; |
@@ -37,7 +38,7 @@ |
// to wait on the threads looking for connections that have not yet been built and pooled, which is what happens now when the function |
// in its entirety is synchronized. If multiple hits per second are happening to the WQM service, then this might need to be done, as |
// in testing the initial db connections prove to take around 1 sec, and once pooled take only milliseconds to return. |
- public static synchronized Connection getConnection(String className, Logger logger) throws csip.ServiceException { |
+ public static synchronized Connection getConnection(String className, SessionLogger logger) throws csip.ServiceException { |
Connection ret_val = null; |
boolean debugging = Boolean.parseBoolean(Config.getString("debugging", "false")); |
|
@@ -82,7 +83,7 @@ |
|
//Doesn't 'need' to be synchronized because it should only be called by getConnection() which is synchronized, |
// but just in case someone tries calling it elsewhere within this class at a later date...leave it synchronized. |
- private static synchronized void createDataSource(String className, String DriverClassName, Logger logger) throws SQLException { |
+ private static synchronized void createDataSource(String className, String DriverClassName, SessionLogger logger) throws SQLException { |
PoolProperties p = new PoolProperties(); |
p.setUrl(connectionStrings.get(className)); |
//p.setDefaultReadOnly( true ); |
web/WEB-INF/csip-defaults.json
@@ -1,4 +1,4 @@ |
{ |
- "csip-wqm.version": "$version: 0.2.49 5a888097cadd 2016-04-22 anvesh<anvesh@cs.colostate.edu>, built at 2016-04-22 14:33 by od$" |
+ "csip-wqm.version": "$version: 0.2.50 a08a6e0e5aba 2016-04-22 od, built at 2016-04-27 11:13 by od$" |
} |
|