diff --git a/activemq-core/src/test/java/org/apache/activemq/kaha/Loader.java b/activemq-core/src/test/java/org/apache/activemq/kaha/Loader.java index 27b2ea8a49..82f7f6a3f4 100644 --- a/activemq-core/src/test/java/org/apache/activemq/kaha/Loader.java +++ b/activemq-core/src/test/java/org/apache/activemq/kaha/Loader.java @@ -53,7 +53,7 @@ class Loader extends Thread{ start.await(); Marshaller keyMarshaller=new StringMarshaller(); Marshaller valueMarshaller=new BytesMarshaller(); - MapContainer container=store.getMapContainer(name,Store.DEFAULT_CONTAINER_NAME,Store.IndexType.PERSISTENT); + MapContainer container=store.getMapContainer(name,Store.DEFAULT_CONTAINER_NAME,true); container.setKeyMarshaller(keyMarshaller); container.setValueMarshaller(valueMarshaller); diff --git a/activemq-core/src/test/java/org/apache/activemq/kaha/MapContainerTest.java b/activemq-core/src/test/java/org/apache/activemq/kaha/MapContainerTest.java index a40b20ddcf..d65a201c13 100644 --- a/activemq-core/src/test/java/org/apache/activemq/kaha/MapContainerTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/kaha/MapContainerTest.java @@ -177,7 +177,7 @@ public class MapContainerTest extends TestCase{ super.setUp(); name = System.getProperty("basedir", ".")+"/target/activemq-data/map-container.db"; store = getStore(); - container = store.getMapContainer("test","test",Store.IndexType.PERSISTENT); + container = store.getMapContainer("test","test",true); container.load(); testMap = new HashMap(); for (int i =0; i < COUNT; i++){