Package org.apache.geronimo.transaction.manager

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


        // somehow OpenEJB LocalInitialContextFactory requires 2 IC's to be initilaized to
        // fully bootstrap the environment, so do one empty run here, and then use a
        // different IC for binding the environment.
        new InitialContext();

        this.txManager = new GeronimoTransactionManager();
        new InitialContext().bind(
                "java:comp/TransactionSynchronizationRegistry",
                txManager);
    }
View Full Code Here


    private void initDataSource() throws JBIException {
        switch (_ode._config.getDbMode()) {
        case EMBEDDED:
        case INTERNAL:
            try {
                TransactionManager txm = new GeronimoTransactionManager();
                _ode.setTransactionManager(txm);
            } catch (Exception e) {
                throw new RuntimeException("Unable to create Geronimo Transaction Manager", e);
            }
            break;
View Full Code Here

    int _tried = 0;
    Scheduler.JobInfo _jobInfo = null;
   
    @Before
    public void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();
        _ds = new GeronimoDelegateSupport(_txm);

        _scheduler = newScheduler("n1");
        _jobs = new ArrayList<Scheduler.JobInfo>(100);
        _commit = new ArrayList<Scheduler.JobInfo>(100);
View Full Code Here

    ArrayList<JobInfo> _commit;
    TransactionManager _txm;
   
    @Before
    public void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();
        _ds = new DelegateSupport();

        _scheduler = newScheduler("n1");
        _jobs = new ArrayList<JobInfo>(100);
        _commit = new ArrayList<JobInfo>(100);
View Full Code Here

    ArrayList<JobInfo> _commit;
    TransactionManager _txm;
   
    @Before
    public void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();
        _ds = new DelegateSupport();

        _scheduler = newScheduler("n1");
        _jobs = new ArrayList<JobInfo>(100);
        _commit = new ArrayList<JobInfo>(100);
View Full Code Here

        } catch( TimeoutException te ) {}
        context.assertIsSatisfied();
    }

    protected void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();

        mexDao = context.mock(MessageExchangeDAO.class);
        SimpleScheduler scheduler = new SimpleScheduler("node", null, new Properties());
        scheduler.setTransactionManager(_txm);
View Full Code Here

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


        // setup tx mgr
        transactionManager = new GeronimoTransactionManager();
        SystemInstance.get().setComponent(TransactionSynchronizationRegistry.class, transactionManager);

        // setup naming
        MockInitialContextFactory.install(Collections.singletonMap("java:comp/TransactionSynchronizationRegistry", transactionManager));
        assertSame(transactionManager, new InitialContext().lookup("java:comp/TransactionSynchronizationRegistry"));
View Full Code Here

            // resource adapters only work with a geronimo transaction manager
            if (!(transactionManager instanceof GeronimoTransactionManager)) {
                throw new OpenEJBException("The use of a resource adapter requires a Geronimo transaction manager");
            }
            GeronimoTransactionManager geronimoTransactionManager = (GeronimoTransactionManager) transactionManager;

            // create a thead pool
            int threadPoolSize = getIntProperty(serviceInfo.properties, "threadPoolSize", 30);
            if (threadPoolSize <= 0) throw new IllegalArgumentException("threadPoolSizes <= 0: " + threadPoolSize);
            Executor threadPool = Executors.newFixedThreadPool(threadPoolSize, new ResourceAdapterThreadFactory(serviceInfo.id));
View Full Code Here

                    threadsWaitingForceThreshold,
                    xidFactory,
                    SystemInstance.get().getBase().getDirectory("."));
            ((HOWLLog)txLog).doStart();
        }
        return new GeronimoTransactionManager(defaultTransactionTimeoutSeconds, xidFactory, txLog);
    }
View Full Code Here

            fail("Should throw a TimeoutException!!");
        } catch( TimeoutException te ) {}
    }
   
    protected void setUp() throws Exception {
        _txm = new GeronimoTransactionManager();
       
        mexDao = new Mock(MessageExchangeDAO.class);
        SimpleScheduler scheduler = new SimpleScheduler("node", null, new Properties());
        scheduler.setTransactionManager(_txm);
       
View Full Code Here

TOP

Related Classes of org.apache.geronimo.transaction.manager.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.