directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r733290 - /directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java
Date Sat, 10 Jan 2009 15:54:05 GMT
Author: elecharny
Date: Sat Jan 10 07:54:05 2009
New Revision: 733290

URL: http://svn.apache.org/viewvc?rev=733290&view=rev
Log:
Fixed Derby initialization. It would have failed when embedding more than one LDAP server

Modified:
    directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java

Modified: directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java?rev=733290&r1=733289&r2=733290&view=diff
==============================================================================
--- directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java
(original)
+++ directory/apacheds/trunk/mitosis/src/main/java/org/apache/directory/mitosis/store/derby/DerbyReplicationStore.java
Sat Jan 10 07:54:05 2009
@@ -103,7 +103,7 @@
         // Create database if not exists.
         try
         {
-            Class.forName( DRIVER_NAME );
+            Class.forName( DRIVER_NAME ).newInstance();
             Connection con = DriverManager.getConnection( dbURI + ";create=true" );
             con.close();
         }



Mime
View raw message