jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1376057 - /jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java
Date Wed, 22 Aug 2012 14:02:26 GMT
Author: mduerig
Date: Wed Aug 22 14:02:26 2012
New Revision: 1376057

URL: http://svn.apache.org/viewvc?rev=1376057&view=rev
Log:
OAK-245: Add import for org.h2 in oak-mk bundle
Thanks Chetan Mehrotra for the patch

Modified:
    jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java

Modified: jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java?rev=1376057&r1=1376056&r2=1376057&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/main/java/org/apache/jackrabbit/mk/persistence/H2Persistence.java
Wed Aug 22 14:02:26 2012
@@ -26,6 +26,7 @@ import org.apache.jackrabbit.mk.model.St
 import org.apache.jackrabbit.mk.store.BinaryBinding;
 import org.apache.jackrabbit.mk.store.IdFactory;
 import org.apache.jackrabbit.mk.store.NotFoundException;
+import org.h2.Driver;
 import org.h2.jdbcx.JdbcConnectionPool;
 
 import java.io.ByteArrayInputStream;
@@ -58,7 +59,7 @@ public class H2Persistence implements GC
             dbDir.mkdirs();
         }
 
-        Class.forName("org.h2.Driver");
+        Driver.load();
         String url = "jdbc:h2:" + dbDir.getCanonicalPath() + "/revs";
         if (FAST) {
             url += ";log=0;undo_log=0";



Mime
View raw message