Package org.activemq.store.jdbc

Examples of org.activemq.store.jdbc.JDBCPersistenceAdapter


        ds.setDatabaseName("testdb");
        if (!init) {
            ds.setCreateDatabase("create");
        }

        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());

        if (!init) {
            persistenceAdapter.setDropTablesOnStartup(true);
        }

        init = true;

        return persistenceAdapter;
View Full Code Here


        ds.setDatabaseName("testdb");
        if (!init) {
            ds.setCreateDatabase("create");
        }

        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());

        if (!init) {
            persistenceAdapter.setDropTablesOnStartup(true);
        }

        init = true;

        return persistenceAdapter;
View Full Code Here

        System.setProperty("derby.storage.fileSyncTransactionLog", "true");
       
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("derbydb");
        ds.setCreateDatabase("create");       
        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);
View Full Code Here

        ds.setDatabaseName("testdb");
        if (!init) {
            ds.setCreateDatabase("create");
        }

        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());

        if (!init) {
            persistenceAdapter.setDropTablesOnStartup(true);
        }

        init = true;

        return persistenceAdapter;
View Full Code Here

        ds.setDatabaseName("testdb");
        if (!init) {
            ds.setCreateDatabase("create");
        }

        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());

        if (!init) {
            persistenceAdapter.setDropTablesOnStartup(true);
        }

        init = true;

        return persistenceAdapter;
View Full Code Here

        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        if( !init )
            ds.setCreateDatabase("create");
        JDBCPersistenceAdapter jdbcAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        if( !init )
            jdbcAdapter.setDropTablesOnStartup(true);

        File directory = new File("target/journal");
        if( !init )
            recursiveDelete(directory);
       
View Full Code Here

        ds.setDatabaseName("testdb");
        if (!init) {
            ds.setCreateDatabase("create");
        }

        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());

        if (!init) {
            persistenceAdapter.setDropTablesOnStartup(true);
        }

        init = true;

        return persistenceAdapter;
View Full Code Here

       
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        if( !init )
            ds.setCreateDatabase("create");
        JDBCPersistenceAdapter jdbcAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        if( !init )
            jdbcAdapter.setDropTablesOnStartup(true);

        File directory = new File("target/journal");
        if( !init )
            recursiveDelete(directory);
       
View Full Code Here

    protected PersistenceAdapter createPersistenceAdapter() {
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        if( !init )
            ds.setCreateDatabase("create");       
        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        if( !init )
            persistenceAdapter.setDropTablesOnStartup(true);
       
        init=true;
        return persistenceAdapter;
    }
View Full Code Here

        System.setProperty("derby.storage.fileSyncTransactionLog", "true");
       
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("derbydb");
        ds.setCreateDatabase("create");       
        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);
View Full Code Here

TOP

Related Classes of org.activemq.store.jdbc.JDBCPersistenceAdapter

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.