Package org.codehaus.activemq.store

Examples of org.codehaus.activemq.store.PersistenceAdapter


     */
    protected PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File directory = new File(getStoreDirectory());

        // lets use reflection to avoid runtime dependency on persistence libraries
        PersistenceAdapter answer = null;
        String property = System.getProperty(PERSISTENCE_ADAPTER_PROPERTY);
        if (property != null) {
            answer = tryCreatePersistenceAdapter(property, directory, false);
        }
        if (answer == null) {
View Full Code Here


        Class adapterClass = loadClass(className, ignoreErrors);
        if (adapterClass != null) {

            try {
                Method method = adapterClass.getMethod("newInstance", NEWINSTANCE_PARAMETER_TYPES);
                PersistenceAdapter answer = (PersistenceAdapter) method.invoke(null, new Object[]{directory});
                log.info("Using persistence adapter: " + adapterClass.getName());
                return answer;
            }
            catch (InvocationTargetException e) {
                Throwable cause = e.getTargetException();
View Full Code Here

     */
    protected PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File directory = new File(getStoreDirectory());

        // lets use reflection to avoid runtime dependency on persistence libraries
        PersistenceAdapter answer = null;
        String property = System.getProperty(PERSISTENCE_ADAPTER_PROPERTY);
        if (property != null) {
            answer = tryCreatePersistenceAdapter(property, directory, false);
        }
        if (answer == null) {
View Full Code Here

        Class adapterClass = loadClass(className, ignoreErrors);
        if (adapterClass != null) {

            try {
                Method method = adapterClass.getMethod("newInstance", NEWINSTANCE_PARAMETER_TYPES);
                PersistenceAdapter answer = (PersistenceAdapter) method.invoke(null, new Object[]{directory});
                log.info("Using persistence adapter: " + adapterClass.getName());
                return answer;
            }
            catch (InvocationTargetException e) {
                Throwable cause = e.getTargetException();
View Full Code Here

     */
    protected PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File directory = new File(getStoreDirectory());

        // lets use reflection to avoid runtime dependency on persistence libraries
        PersistenceAdapter answer = null;
        String property = System.getProperty(PERSISTENCE_ADAPTER_PROPERTY);
        if (property != null) {
            answer = tryCreatePersistenceAdapter(property, directory, false);
        }
        if (answer == null) {
View Full Code Here

        Class adapterClass = loadClass(className, ignoreErrors);
        if (adapterClass != null) {

            try {
                Method method = adapterClass.getMethod("newInstance", NEWINSTANCE_PARAMETER_TYPES);
                PersistenceAdapter answer = (PersistenceAdapter) method.invoke(null, new Object[]{directory});
                log.info("Using persistence adapter: " + adapterClass.getName());
                return answer;
            }
            catch (InvocationTargetException e) {
                Throwable cause = e.getTargetException();
View Full Code Here

     */
    protected PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File directory = new File(getStoreDirectory());

        // lets use reflection to avoid runtime dependency on persistence libraries
        PersistenceAdapter answer = null;
        String property = System.getProperty(PERSISTENCE_ADAPTER_PROPERTY);
        if (property != null) {
            answer = tryCreatePersistenceAdapter(property, directory, false);
        }
        if (answer == null) {
View Full Code Here

        Class adapterClass = loadClass(className, ignoreErrors);
        if (adapterClass != null) {

            try {
                Method method = adapterClass.getMethod("newInstance", NEWINSTANCE_PARAMETER_TYPES);
                PersistenceAdapter answer = (PersistenceAdapter) method.invoke(null, new Object[]{directory});
                log.info("Using persistence adapter: " + adapterClass.getName());
                return answer;
            }
            catch (InvocationTargetException e) {
                Throwable cause = e.getTargetException();
View Full Code Here

    }
   
    protected void setUp() throws Exception {
       
        JournalTestHelper helper = new JournalTestHelper();
        PersistenceAdapter adapter = helper.createPersistenceAdapter(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);       
        SimpleCachePersistenceAdapter cacheAdapter = new SimpleCachePersistenceAdapter(adapter);
        cacheAdapter.setCacheSize(MESSAGE_COUNT);
       
        broker = new BrokerContainerImpl("localhost");
        broker.setPersistenceAdapter(cacheAdapter);
View Full Code Here

     */
    protected PersistenceAdapter createPersistenceAdapter() throws JMSException {
        File directory = new File(getStoreDirectory());

        // lets use reflection to avoid runtime dependency on persistence libraries
        PersistenceAdapter answer = null;
        String property = System.getProperty(PERSISTENCE_ADAPTER_PROPERTY);
        if (property != null) {
            answer = tryCreatePersistenceAdapter(property, directory, false);
        }
        if (answer == null) {
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.store.PersistenceAdapter

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.