Examples of GeronimoTransactionManager


Examples of org.apache.geronimo.transaction.GeronimoTransactionManager

    private TransactionContextManager transactionContextManager;
    private XidFactory xidFactory = new XidFactoryImpl("geronimo.test.tm".getBytes());

    protected void setUp() throws Exception {
        TransactionManagerProxy tm = new GeronimoTransactionManager(1000, null, null);
        transactionContextManager = new TransactionContextManager(tm, tm, tm);
    }
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

  private ApplicationContext applicationContext;
    private TransactionContextManager transactionContextManager;
 
  public Object getObject() throws Exception {
    if (transactionManager == null) {
      transactionManager = new GeronimoTransactionManager(getTransactionContextManager());
    }
    return transactionManager;
  }
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

        broker.addConnector("tcp://localhost:61616");
        broker.start();
       
        TransactionManagerImpl exTransactionManager = new TransactionManagerImpl(600, new XidFactoryImpl(), null, null);
        TransactionContextManager transactionContextManager = new TransactionContextManager(exTransactionManager, exTransactionManager);
        tm = (TransactionManager) new GeronimoTransactionManager(transactionContextManager);
       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManager cm = new GenericConnectionManager(
                        new XATransactions(true, true),
                        new NoPool(),
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

    private TransactionManager tm;

    protected void setUp() throws Exception {
        TransactionManagerImpl exTransactionManager = new TransactionManagerImpl(600, new XidFactoryImpl(), null, null);
        TransactionContextManager transactionContextManager = new TransactionContextManager(exTransactionManager, exTransactionManager);
        tm = (TransactionManager) new GeronimoTransactionManager(transactionContextManager);
       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManager cm = new GenericConnectionManager(
                        new XATransactions(true, true),
                        new NoPool(),
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

        broker.addConnector("tcp://localhost:61616");
        broker.start();
       
        TransactionManagerImpl exTransactionManager = new TransactionManagerImpl(600, new XidFactoryImpl(), null, null);
        TransactionContextManager transactionContextManager = new TransactionContextManager(exTransactionManager, exTransactionManager);
        tm = (TransactionManager) new GeronimoTransactionManager(transactionContextManager);
       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManager cm = new GenericConnectionManager(
                        new XATransactions(true, true),
                        new NoPool(),
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

        return container;
    }
   
    public TransactionManager getTransactionManager() {
        if (transactionContextManager != null) {
            return new GeronimoTransactionManager(transactionContextManager);
        }
        return null;
    }
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

        broker.addConnector("tcp://localhost:61616");
        broker.start();

        TransactionManagerImpl exTransactionManager = new TransactionManagerImpl(600, new XidFactoryImpl(), null, null);
        TransactionContextManager transactionContextManager = new TransactionContextManager(exTransactionManager, exTransactionManager);
        tm = (TransactionManager) new GeronimoTransactionManager(transactionContextManager);

        JCAFlow jcaFlow = new JCAFlow();
        jcaFlow.setTransactionContextManager(transactionContextManager);
       
        jbi = new JBIContainer();
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

        broker.addConnector("tcp://localhost:61616");
        broker.start();
       
        exTransactionManager = new TransactionManagerImpl(600, new XidFactoryImpl(), null, null);
        transactionContextManager = new TransactionContextManager(exTransactionManager, exTransactionManager);
        txManager = (TransactionManager) new GeronimoTransactionManager(transactionContextManager);
       
        JCAFlow jcaFlow = new JCAFlow();
        jcaFlow.setTransactionContextManager(transactionContextManager);
       
        jbi = new JBIContainer();
View Full Code Here

Examples of org.apache.geronimo.transaction.context.GeronimoTransactionManager

                throw new RuntimeException("Invalid URL for jencks: " + f, except);
            }
        }

        // Use Jenck to wrap TransactionContextManager back to TransactionManager
        return new GeronimoTransactionManager(ctxManager);
    }
View Full Code Here

Examples of org.apache.geronimo.transaction.manager.GeronimoTransactionManager

        try {
            try {
                transactionManager = new SpringTransactionManagerCreator().create(transactionTimeout, xidFactory, transactionLog);
                useSpring = true;
            } catch (NoClassDefFoundError e) {
                transactionManager = new GeronimoTransactionManager(transactionTimeout, xidFactory, transactionLog);
            }
        } catch (XAException e) {
            throw new RuntimeException("Error recovering transaction log", e);
        }
    }
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.