db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r385548 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
Date Mon, 13 Mar 2006 13:39:20 GMT
Author: arminw
Date: Mon Mar 13 05:39:18 2006
New Revision: 385548

URL: http://svn.apache.org/viewcvs?rev=385548&view=rev
Log:
allow acess to underlying connection by default

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java?rev=385548&r1=385547&r2=385548&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryDBCPImpl.java
Mon Mar 13 05:39:18 2006
@@ -331,8 +331,8 @@
             final Properties properties = jcd.getConnectionPoolDescriptor().getDbcpProperties();
             final String allowConnectionUnwrapParam;
             allowConnectionUnwrapParam = properties.getProperty(PARAM_NAME_UNWRAP_ALLOWED);
-            allowConnectionUnwrap = allowConnectionUnwrapParam != null &&
-                    Boolean.valueOf(allowConnectionUnwrapParam).booleanValue();
+            //allow access to underlying resource by default if property is not set
+            allowConnectionUnwrap = allowConnectionUnwrapParam == null || Boolean.valueOf(allowConnectionUnwrapParam).booleanValue();
         }
         final PoolingDataSource dataSource;
         dataSource = new PoolingDataSource(connectionPool);



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message