Package org.apache.activemq.store.jpa

Examples of org.apache.activemq.store.jpa.JPAPersistenceAdapter


public class JPARecoveryBrokerTest extends RecoveryBrokerTest {

    protected BrokerService createBroker() throws Exception {
        BrokerService service = new BrokerService();
        service.setDeleteAllMessagesOnStartup(true);
        JPAPersistenceAdapter pa = new JPAPersistenceAdapter();
        Properties props = new Properties();
        props.setProperty("openjpa.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver");
        props.setProperty("openjpa.ConnectionURL", "jdbc:derby:activemq-data/derby;create=true");
        props.setProperty("openjpa.jdbc.SynchronizeMappings", "buildSchema");
//        props.setProperty("openjpa.Log", "DefaultLevel=WARN,SQL=TRACE");
        pa.setEntityManagerProperties(props);
        service.setPersistenceAdapter(pa);
        return service;
       
    }
View Full Code Here


       
    }
   
    protected BrokerService createRestartedBroker() throws Exception {
        BrokerService service = new BrokerService();
        JPAPersistenceAdapter pa = new JPAPersistenceAdapter();
        Properties props = new Properties();
        props.setProperty("openjpa.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver");
        props.setProperty("openjpa.ConnectionURL", "jdbc:derby:activemq-data/derby;create=true");
        props.setProperty("openjpa.jdbc.SynchronizeMappings", "buildSchema");
//        props.setProperty("openjpa.Log", "DefaultLevel=WARN,SQL=TRACE");
        pa.setEntityManagerProperties(props);
        service.setPersistenceAdapter(pa);
        return service;
    }
View Full Code Here

public class JPARecoveryBrokerTest extends RecoveryBrokerTest {

    protected BrokerService createBroker() throws Exception {
        BrokerService service = new BrokerService();
        service.setDeleteAllMessagesOnStartup(true);
        JPAPersistenceAdapter pa = new JPAPersistenceAdapter();
        Properties props = new Properties();
        props.setProperty("openjpa.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver");
        props.setProperty("openjpa.ConnectionURL", "jdbc:derby:activemq-data/derby;create=true");
        props.setProperty("openjpa.jdbc.SynchronizeMappings", "buildSchema");
        props.setProperty("openjpa.Log", "DefaultLevel=WARN,SQL=TRACE");
        pa.setEntityManagerProperties(props);
        service.setPersistenceAdapter(pa);
        return service;
       
    }
View Full Code Here

       
    }
   
    protected BrokerService createRestartedBroker() throws Exception {
        BrokerService service = new BrokerService();
        JPAPersistenceAdapter pa = new JPAPersistenceAdapter();
        Properties props = new Properties();
        props.setProperty("openjpa.ConnectionDriverName", "org.apache.derby.jdbc.EmbeddedDriver");
        props.setProperty("openjpa.ConnectionURL", "jdbc:derby:activemq-data/derby;create=true");
        props.setProperty("openjpa.jdbc.SynchronizeMappings", "buildSchema");
        props.setProperty("openjpa.Log", "DefaultLevel=WARN,SQL=TRACE");
        pa.setEntityManagerProperties(props);
        service.setPersistenceAdapter(pa);
        return service;
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.store.jpa.JPAPersistenceAdapter

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.