mirror of https://github.com/apache/activemq.git
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:
parent
0859f30a91
commit
ee9f05ea52
|
@ -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);
|
||||
|
|
|
@ -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++){
|
||||
|
|
Loading…
Reference in New Issue