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(); start.await();
Marshaller keyMarshaller=new StringMarshaller(); Marshaller keyMarshaller=new StringMarshaller();
Marshaller valueMarshaller=new BytesMarshaller(); 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.setKeyMarshaller(keyMarshaller);
container.setValueMarshaller(valueMarshaller); container.setValueMarshaller(valueMarshaller);

View File

@ -177,7 +177,7 @@ public class MapContainerTest extends TestCase{
super.setUp(); super.setUp();
name = System.getProperty("basedir", ".")+"/target/activemq-data/map-container.db"; name = System.getProperty("basedir", ".")+"/target/activemq-data/map-container.db";
store = getStore(); store = getStore();
container = store.getMapContainer("test","test",Store.IndexType.PERSISTENT); container = store.getMapContainer("test","test",true);
container.load(); container.load();
testMap = new HashMap(); testMap = new HashMap();
for (int i =0; i < COUNT; i++){ for (int i =0; i < COUNT; i++){