Examples of JDBCPersistenceAdapter


Examples of org.apache.activemq.store.jdbc.JDBCPersistenceAdapter

        broker.setIoExceptionHandler(handler);
        broker.addConnector("tcp://localhost:0");
        broker.setUseJmx(false);
        broker.setPersistent(true);
        broker.setDeleteAllMessagesOnStartup(true);
        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter();
        persistenceAdapter.setDataSource(sharedDs);
        persistenceAdapter.setUseLock(false);
        persistenceAdapter.setLockKeepAlivePeriod(500);
        persistenceAdapter.getLocker().setLockAcquireSleepInterval(500);
        broker.setPersistenceAdapter(persistenceAdapter);
        broker.start();
        super.setUp();
    }
View Full Code Here

Examples of org.codehaus.activemq.store.jdbc.JDBCPersistenceAdapter

    protected void setUp() throws Exception {   
       
        EmbeddedDataSource ds = new EmbeddedDataSource();
        ds.setDatabaseName("testdb");
        ds.setCreateDatabase("create");
        JDBCPersistenceAdapter persistenceAdapter = new JDBCPersistenceAdapter(ds, new DefaultWireFormat());
        persistenceAdapter.setDropTablesOnStartup(true);

        broker = new BrokerContainerImpl("localhost");
        broker.addConnector(new BrokerConnectorImpl(broker, "vm://localhost", new DefaultWireFormat()));
        broker.setPersistenceAdapter(persistenceAdapter);
        broker.start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.