activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r957194 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java
Date Wed, 23 Jun 2010 13:39:15 GMT
Author: dejanb
Date: Wed Jun 23 13:39:14 2010
New Revision: 957194

URL: http://svn.apache.org/viewvc?rev=957194&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2695 - kahadb store directory location

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java?rev=957194&r1=957193&r2=957194&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/KahaDBDurableSubscriptionSelectorTest.java
Wed Jun 23 13:39:14 2010
@@ -17,6 +17,8 @@
 
 package org.apache.activemq.usecases;
 
+import java.io.File;
+
 import org.apache.activemq.store.PersistenceAdapter;
 import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
 
@@ -24,7 +26,10 @@ public class KahaDBDurableSubscriptionSe
 
     @Override
     public PersistenceAdapter createPersistenceAdapter() throws Exception {
-        return new KahaDBPersistenceAdapter();
+        KahaDBPersistenceAdapter adapter = new KahaDBPersistenceAdapter();
+        File dir = new File("target/KahaDB");
+        adapter.setDirectory(dir);
+        return adapter;
     }
 
 }



Mime
View raw message