geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: rev 51837 - in geronimo/trunk/modules/derby/src: java/org/apache/geronimo/derby test/org/apache/geronimo/derby
Date Sun, 03 Oct 2004 16:48:42 GMT
Author: dain
Date: Sun Oct  3 09:48:41 2004
New Revision: 51837

Modified:
   geronimo/trunk/modules/derby/src/java/org/apache/geronimo/derby/DerbySystemGBean.java
   geronimo/trunk/modules/derby/src/test/org/apache/geronimo/derby/DerbySystemGBeanTest.java
Log:
Set the magic derby system property that causes derby to use explicity
file sync instead of relying on vm support for file open rws    
Reenabled derby tests


Modified: geronimo/trunk/modules/derby/src/java/org/apache/geronimo/derby/DerbySystemGBean.java
==============================================================================
--- geronimo/trunk/modules/derby/src/java/org/apache/geronimo/derby/DerbySystemGBean.java
(original)
+++ geronimo/trunk/modules/derby/src/java/org/apache/geronimo/derby/DerbySystemGBean.java
Sun Oct  3 09:48:41 2004
@@ -54,6 +54,11 @@
             actualHome = serverInfo.resolvePath(systemHome);
         }
         System.setProperty(SYSTEM_HOME, actualHome);
+
+        // set the magic system property that causes derby to use explicity
+        // file sync instead of relying on vm support for file open rws
+        System.setProperty("derby.storage.fileSyncTransactionLog", "true");
+
         // load the Embedded driver to initialize the home
         new org.apache.derby.jdbc.EmbeddedDriver();
         log.info("Started in " + actualHome);

Modified: geronimo/trunk/modules/derby/src/test/org/apache/geronimo/derby/DerbySystemGBeanTest.java
==============================================================================
--- geronimo/trunk/modules/derby/src/test/org/apache/geronimo/derby/DerbySystemGBeanTest.java
(original)
+++ geronimo/trunk/modules/derby/src/test/org/apache/geronimo/derby/DerbySystemGBeanTest.java
Sun Oct  3 09:48:41 2004
@@ -33,11 +33,7 @@
 public class DerbySystemGBeanTest extends TestCase {
     private File systemDir;
 
-    public void testNothing() {
-    }
-
-    // DISABLED: Derby does not run on Mac OS X or FreeBSD
-    public void XtestCreateSystemUsingServerInfo() throws Exception {
+    public void testCreateSystemUsingServerInfo() throws Exception {
         ServerInfo serverInfo = new ServerInfo(systemDir.toString());
         String derbyDir = "var/dbderby";
         DerbySystemGBean gbean = new DerbySystemGBean(serverInfo, derbyDir);

Mime
View raw message