ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r697200 - /ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
Date Fri, 19 Sep 2008 19:34:22 GMT
Author: midon
Date: Fri Sep 19 12:34:22 2008
New Revision: 697200

URL: http://svn.apache.org/viewvc?rev=697200&view=rev
Log:
log all the properties used to build the SessionFactory

Modified:
    ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java

Modified: ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java?rev=697200&r1=697199&r2=697200&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
(original)
+++ ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
Fri Sep 19 12:34:22 2008
@@ -36,6 +36,7 @@
 import java.sql.DatabaseMetaData;
 import java.util.HashMap;
 import java.util.Properties;
+import java.util.Enumeration;
 
 /**
  * Hibernate-based {@link org.apache.ode.bpel.dao.BpelDAOConnectionFactory}
@@ -120,8 +121,16 @@
         if (System.getProperty("ode.connection.isolation") != null) {
             String level = System.getProperty("ode.connection.isolation", "2");
             properties.put(Environment.ISOLATION, level);
-        }        
+        }
 
+        if (__log.isDebugEnabled()) {
+            Enumeration names = properties.propertyNames();
+            __log.debug("Properties passed to Hibernate:");
+            while (names.hasMoreElements()) {
+                String name = (String) names.nextElement();
+                __log.debug(name + "=" + properties.getProperty(name));
+            }
+        }
         SessionManager sm = new SessionManager(properties, _ds, _tm);
         _sessionManager = sm;
     }



Mime
View raw message