You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2012/05/10 13:21:30 UTC
svn commit: r1336596 -
/incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java
Author: kwright
Date: Thu May 10 11:21:29 2012
New Revision: 1336596
URL: http://svn.apache.org/viewvc?rev=1336596&view=rev
Log:
Get the registration code working.
Modified:
incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java
Modified: incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java?rev=1336596&r1=1336595&r2=1336596&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java (original)
+++ incubator/lcf/branches/CONNECTORS-96/framework/core/src/main/java/org/apache/manifoldcf/core/jdbcpool/ConnectionPoolManager.java Thu May 10 11:21:29 2012
@@ -53,8 +53,10 @@ public class ConnectionPoolManager
String userName, String password, int maxSize, long expiration)
throws ClassNotFoundException, InstantiationException, IllegalAccessException
{
- Class.forName(driverClassName);
- ConnectionPool cp = new ConnectionPool(driverClassName,userName,password,maxSize,expiration);
+ System.out.println("Instantiating");
+ Class.forName(driverClassName).newInstance();
+ System.out.println("Instantiated");
+ ConnectionPool cp = new ConnectionPool(dbURL,userName,password,maxSize,expiration);
poolMap.put(poolKey,cp);
return cp;
}