tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1609016 - /tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
Date Wed, 09 Jul 2014 04:52:11 GMT
Author: rmannibucau
Date: Wed Jul  9 04:52:11 2014
New Revision: 1609016

URL: http://svn.apache.org/r1609016
Log:
trying to cleanup the db asap between tests

Modified:
    tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java

Modified: tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java?rev=1609016&r1=1609015&r2=1609016&view=diff
==============================================================================
--- tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
(original)
+++ tomee/tomee/trunk/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
Wed Jul  9 04:52:11 2014
@@ -17,6 +17,7 @@
 package org.apache.openejb.test;
 
 import java.util.Properties;
+import java.util.Random;
 
 import javax.naming.Context;
 import javax.naming.InitialContext;
@@ -36,6 +37,9 @@ public class IvmTestServer implements Te
         try{
             props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
 
+            props.put("Default JDBC Database", "new://Resource?type=DataSource");
+            props.put("Default JDBC Database.JdbcUrl", "jdbc:hsqldb:mem:" + IvmTestServer.class.getSimpleName()
+ new Random().nextInt(250) + ";shutdown=true");
+
             Properties p = new Properties();
             p.putAll(props);
             p.put("openejb.loader", "embed");



Mime
View raw message