Package org.activemq.store.journal

Examples of org.activemq.store.journal.JournalPersistenceAdapter


        JDBCPersistenceAdapter jdbcAdapter = new JDBCPersistenceAdapter();
        jdbcAdapter.setDataSource(ds);
       
        // Setup the Journal
        File journalDir = new File(dataDirectory, "journal");
        JournalPersistenceAdapter journalAdapter = new JournalPersistenceAdapter(journalDir, jdbcAdapter);
        journalAdapter.setJournalType(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);
       
        // Add a cache layer if the memory manager is available.
        if( memManager==null )
            return journalAdapter;
       
View Full Code Here


        File directory = new File("target/journal");
        if( !init )
            recursiveDelete(directory);
       
        JournalPersistenceAdapter journalAdapter = new JournalPersistenceAdapter(directory, jdbcAdapter);
        journalAdapter.setJournalType(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);
       
        init=true;
        return journalAdapter;
    }
View Full Code Here

        File directory = new File("target/journal");
        if( !init )
            recursiveDelete(directory);
       
        JournalPersistenceAdapter journalAdapter = new JournalPersistenceAdapter(directory, jdbcAdapter);
        journalAdapter.setJournalType(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);
       
        init=true;
        return journalAdapter;
    }
View Full Code Here

        JDBCPersistenceAdapter jdbcAdapter = new JDBCPersistenceAdapter();
        jdbcAdapter.setDataSource(ds);
       
        // Setup the Journal
        File journalDir = new File(dataDirectory, "journal");
        JournalPersistenceAdapter journalAdapter = new JournalPersistenceAdapter(journalDir, jdbcAdapter);
        journalAdapter.setJournalType(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);
       
        // Add a cache layer if the memory manager is available.
        if( memManager==null )
            return journalAdapter;
       
View Full Code Here

TOP

Related Classes of org.activemq.store.journal.JournalPersistenceAdapter

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.