Author: gnodet
Date: Tue Feb  6 06:36:46 2007
New Revision: 504160

URL: http://svn.apache.org/viewvc?view=rev&rev=504160
Log:
Add a constructor to ProcessStoreImpl.java which takes the persistence type 
(jpa, hibernate)
instead of using a system property (which remains the default).
The main reason is that the bpel-dao is not configured through a system property
in the jbi SE but in a property file. So being consistent is better.

Modified:
    
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java

Modified: 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java?view=diff&rev=504160&r1=504159&r2=504160
==============================================================================
--- 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
 (original)
+++ 
incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/ProcessStoreImpl.java
 Tue Feb  6 06:36:46 2007
@@ -89,7 +89,10 @@
     }
 
     public ProcessStoreImpl(DataSource ds, boolean auto) {
-        String persistenceType = System.getProperty("ode.persistence");
+        this(ds, System.getProperty("ode.persistence"));
+    }
+
+    public ProcessStoreImpl(DataSource ds, String persistenceType) {
         if (ds != null) {
             if ("hibernate".equalsIgnoreCase(persistenceType))
                 _cf = new 
org.apache.ode.store.hib.DbConfStoreConnectionFactory(ds, false);
@@ -107,7 +110,6 @@
         }
 
     }
-
 
     public void shutdown() {
         if (_inMemDs != null) {


Reply via email to