use Kaha MapContainer for message storage instead of the Kaha ListContainer

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@503681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-02-05 13:58:15 +00:00
parent 0859f30a91
commit ee9f05ea52
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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++){