Package org.apache.geronimo.transaction.manager

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


    public void setUp() throws Exception {
        super.setUp();

        // create a GeronimoTransactionManager for testing
        transactionManager = new TransactionManagerImpl();

        // create a driver connection factory
        Properties properties = new Properties();
        properties.setProperty("user", "username");
        properties.setProperty("password", "password");
View Full Code Here


        connector.setPort(5678);
        connector.setMaxThreads(50);
        connector.setMinThreads(10);
        connector.doStart();

        TransactionManagerImpl transactionManager = new TransactionManagerImpl();
        this.transactionManager = transactionManager;
        connectionTrackingCoordinator = new ConnectionTrackingCoordinator();
        transactionManager.addTransactionAssociationListener(new GeronimoTransactionListener(connectionTrackingCoordinator));
    }
View Full Code Here

    private boolean committed;
    private TransactionManager transactionManager;

    protected void setUp() throws Exception {
        super.setUp();
        transactionManager = new TransactionManagerImpl();
        transactionEnlistingInterceptor = new TransactionEnlistingInterceptor(this, this.transactionManager);
    }
View Full Code Here

        }
    };
    private ClassLoader classLoader = this.getClass().getClassLoader();

    protected void setUp() throws Exception {
        TransactionManagerImpl transactionManager = new TransactionManagerImpl();
        this.transactionManager = transactionManager;

        connectionTrackingCoordinator = new ConnectionTrackingCoordinator();
        transactionManager.addTransactionAssociationListener(new GeronimoTransactionListener(connectionTrackingCoordinator));

        mockManagedConnectionFactory = new MockManagedConnectionFactory();
        subject = new Subject();
        ContextManager.setCallers(subject, subject);
        connectionManagerDeployment = new GenericConnectionManager(
View Full Code Here

        container.doStart();

        connector = new ConnectorGBean("HTTP", null, "localhost", 8181, container);
        connector.doStart();

        TransactionManagerImpl transactionManager = new TransactionManagerImpl();
        this.transactionManager = transactionManager;
        connectionTrackingCoordinator = new ConnectionTrackingCoordinator();
        transactionManager.addTransactionAssociationListener(new GeronimoTransactionListener(connectionTrackingCoordinator));
    }
View Full Code Here

    private TransactionManager transactionManager;
    private TransactionCachingInterceptor transactionCachingInterceptor;

    protected void setUp() throws Exception {
        super.setUp();
        transactionManager = new TransactionManagerImpl();
        transactionCachingInterceptor = new TransactionCachingInterceptor(this, transactionManager);
    }
View Full Code Here

        TransactionManagerProxy.ConstructorParams params = new TransactionManagerProxy.ConstructorParams();
        XidFactory xidFactory = new XidFactoryImpl("WHAT DO WE CALL IT?".getBytes());
        if (transactionLog == null) {
            transactionLog = new UnrecoverableLog();
        }
        ExtendedTransactionManager delegate = new TransactionManagerImpl(defaultTransactionTimeoutSeconds, transactionLog, xidFactory);
        Recovery recovery = new RecoveryImpl(transactionLog, xidFactory);
        params.delegate = delegate;
        params.xidImporter = (XidImporter) delegate;
        params.recovery = recovery;
        params.resourceManagers = resourceManagers;
View Full Code Here

*
* */
public class TransactionalThreadPooledTimerTest extends AbstractThreadPooledTimerTest {

    protected void setUp() throws Exception {
        TransactionManagerImpl transactionManager = new TransactionManagerImpl();
        transactionContextManager = new TransactionContextManager(transactionManager, transactionManager, null);
        executableWorkFactory = new TransactionalExecutorTaskFactory(transactionContextManager, 1);
        super.setUp();
    }
View Full Code Here

*
* */
public class NontransactionalThreadPooledTimerTest extends AbstractThreadPooledTimerTest {

    protected void setUp() throws Exception {
        TransactionManagerImpl transactionManager = new TransactionManagerImpl();
        transactionContextManager = new TransactionContextManager(transactionManager, transactionManager, null);
        executableWorkFactory = new NontransactionalExecutorTaskFactory();
        super.setUp();
    }
View Full Code Here

    private TransactionContextManager transactionContextManager;
    private TransactionCachingInterceptor transactionCachingInterceptor;

    protected void setUp() throws Exception {
        super.setUp();
        transactionManager = new TransactionManagerImpl();
        transactionContextManager = new TransactionContextManager(transactionManager, transactionManager, null);
        transactionCachingInterceptor = new TransactionCachingInterceptor(this, transactionContextManager);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.transaction.manager.TransactionManagerImpl

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.