Package org.apache.geronimo.transaction.context

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


        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

    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

        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

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

        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

        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

                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

TOP

Related Classes of org.apache.geronimo.transaction.context.GeronimoTransactionManager

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.