tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1622750 - /tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java
Date Fri, 05 Sep 2014 17:58:21 GMT
Author: rmannibucau
Date: Fri Sep  5 17:58:20 2014
New Revision: 1622750

URL: http://svn.apache.org/r1622750
Log:
no need of reflection here

Modified:
    tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java?rev=1622750&r1=1622749&r2=1622750&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java
(original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/resource/jdbc/DataSourceFactory.java
Fri Sep  5 17:58:20 2014
@@ -271,11 +271,8 @@ public class DataSourceFactory {
             }
         }
         if (defaultCreator instanceof DefaultDataSourceCreator && willBeProxied)
{
-            try { // this one is proxiable, not the default one (legacy)
-                return (DataSourceCreator) loader.loadClass(DbcpDataSourceCreator.class.getName()).newInstance();
-            } catch (final Throwable e) {
-                LOGGER.error("can't create '" + creatorName + "', the default one will be
used: " + defaultCreator, e);
-            }
+            // this one is proxiable, not the default one (legacy)
+            return new DbcpDataSourceCreator();
         }
         return defaultCreator;
     }



Mime
View raw message