Author: assaf
Date: Mon Jan  8 13:48:30 2007
New Revision: 494207

URL: http://svn.apache.org/viewvc?view=rev&rev=494207
Log:
De-abstracting OpenJPA to use Log4J

Modified:
    
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
    
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/jpa/DbConfStoreConnectionFactory.java

Modified: 
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java?view=diff&rev=494207&r1=494206&r2=494207
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/runtime/MockBpelServer.java
 Mon Jan  8 13:48:30 2007
@@ -165,7 +165,7 @@
     protected DataSource createDataSource() throws Exception {
         if (_txManager == null)
             throw new RuntimeException("No transaction manager");
-        String url = 
"jdbc:derby:/home/dusty/Dev/Projects/ode/bpel-runtime/target/test-classes/derby-db/data";
+        String url = "jdbc:derby:target/test-classes/derby-db/data";
         _minervaPool = new MinervaPool();
         _minervaPool.setTransactionManager(_txManager);
         _minervaPool.getConnectionFactory().setConnectionURL(url);
@@ -205,7 +205,8 @@
         });
         propMap.put("openjpa.ConnectionDriverName", 
org.apache.derby.jdbc.EmbeddedDriver.class.getName());
         propMap.put("javax.persistence.nonJtaDataSource", _dataSource);
-        propMap.put("openjpa.Log", "DefaultLevel=TRACE");
+        //propMap.put("openjpa.Log", "DefaultLevel=ERROR");
+        propMap.put("openjpa.Log", "log4j");
         EntityManagerFactory emf = 
Persistence.createEntityManagerFactory("ode-dao", propMap);
         EntityManager em = emf.createEntityManager();
         _daoCF = new BPELDAOConnectionFactoryImpl(em);

Modified: 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/jpa/DbConfStoreConnectionFactory.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/jpa/DbConfStoreConnectionFactory.java?view=diff&rev=494207&r1=494206&r2=494207
==============================================================================
--- 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/jpa/DbConfStoreConnectionFactory.java
 (original)
+++ 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/jpa/DbConfStoreConnectionFactory.java
 Mon Jan  8 13:48:30 2007
@@ -39,7 +39,8 @@
         _ds = ds;
         HashMap propMap = new HashMap();
         propMap.put("javax.persistence.nonJtaDataSource", ds);
-        propMap.put("openjpa.Log", "DefaultLevel=TRACE");
+        //propMap.put("openjpa.Log", "DefaultLevel=TRACE");
+        propMap.put("openjpa.Log", "log4j");
         propMap.put("openjpa.jdbc.DBDictionary", 
"org.apache.openjpa.jdbc.sql.DerbyDictionary");
 //        propMap.put("openjpa.MetaDataFactory",
 //                "Types=org.apache.ode.store.jpa.ProcessConfDaoImpl;" +


Reply via email to