Package org.codehaus.activemq.store.jdbc

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

Related Classes of org.codehaus.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.