Package org.codehaus.activemq.store.cache

Examples of org.codehaus.activemq.store.cache.SimpleCachePersistenceAdapter


   
    protected void setUp() throws Exception {

        JournalTestHelper helper = new JournalTestHelper();
        adapter = helper.createPersistenceAdapter(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);       
        adapter = new SimpleCachePersistenceAdapter(adapter);
        adapter.start();
        store = adapter.createQueueMessageStore("TEST");
        store.start();

        message = new ActiveMQBytesMessage();
View Full Code Here


   
    protected void setUp() throws Exception {
       
        JournalTestHelper helper = new JournalTestHelper();
        PersistenceAdapter adapter = helper.createPersistenceAdapter(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);       
        SimpleCachePersistenceAdapter cacheAdapter = new SimpleCachePersistenceAdapter(adapter);
        cacheAdapter.setCacheSize(MESSAGE_COUNT);
       
        broker = new BrokerContainerImpl("localhost");
        broker.setPersistenceAdapter(cacheAdapter);
        broker.start();
        connectionFactory = new ActiveMQConnectionFactory(broker, "vm://localhost");
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.store.cache.SimpleCachePersistenceAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.