Examples of GeronimoTransactionManager


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

            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

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

    TransactionManager _txm;
    int _tried = 0;
    Scheduler.JobInfo _jobInfo = null;

    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

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

    ArrayList<JobInfo> _jobs;
    ArrayList<JobInfo> _commit;
    TransactionManager _txm;

    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

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

                            flushSleepTimeMilliseconds, logFileDir, logFileExt, logFileName, maxBlocksPerFile,
                            maxBuffers, maxLogFiles, minBuffers, threadsWaitingForceThreshold, xidFactory,
                            serverBaseDir);

            howlLog.doStart();
            transactionManager = new GeronimoTransactionManager(1200, xidFactory, howlLog);
        } catch (Exception e) {
            throw new IllegalStateException(e);
        }
    }
View Full Code Here

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

            }

            // WorkManager: the resource adapter can use this to dispatch messages or perform tasks
            WorkManager workManager;
            if (transactionManager instanceof GeronimoTransactionManager) {
                GeronimoTransactionManager geronimoTransactionManager = (GeronimoTransactionManager) transactionManager;
                TransactionContextHandler txWorkContextHandler = new TransactionContextHandler(geronimoTransactionManager);
               
                // use id as default realm name if realm is not specified in service properties
                String securityRealmName = getStringProperty(serviceInfo.properties, "realm", serviceInfo.id);
                               
View Full Code Here

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

                    xidFactory,
                    SystemInstance.get().getBase().getDirectory("."));
            ((HOWLLog)txLog).doStart();
        }

        return new GeronimoTransactionManager(defaultTransactionTimeoutSeconds, xidFactory, txLog);
    }
View Full Code Here

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

    private GeronimoTransactionManager tm;
    private String persistenceUnit = "foo";
    private MockEntityManagerFactory entityManagerFactory;

    protected void setUp() throws Exception {
        tm = new GeronimoTransactionManager();
        tm.addTransactionAssociationListener(new TransactionListener());
        entityManagerFactory = new MockEntityManagerFactory();
    }
View Full Code Here

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

/**
* @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $
*/
public class TransactionalThreadPooledTimerTest extends AbstractThreadPooledTimerTest {
    protected void setUp() throws Exception {
        this.transactionManager = new GeronimoTransactionManager();
        executableWorkFactory = new TransactionalExecutorTaskFactory(this.transactionManager, 1);
        super.setUp();
    }
View Full Code Here

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

* @version $Rev: 476049 $ $Date: 2006-11-16 20:35:17 -0800 (Thu, 16 Nov 2006) $
*/
public class NontransactionalThreadPooledTimerTest extends AbstractThreadPooledTimerTest {

    protected void setUp() throws Exception {
        this.transactionManager = new GeronimoTransactionManager();
        executableWorkFactory = new NontransactionalExecutorTaskFactory();
        super.setUp();
    }
View Full Code Here

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

                            flushSleepTimeMilliseconds, logFileDir, logFileExt, logFileName, maxBlocksPerFile,
                            maxBuffers, maxLogFiles, minBuffers, threadsWaitingForceThreshold, xidFactory,
                            serverBaseDir);

            howlLog.doStart();
            transactionManager = new GeronimoTransactionManager(1200, xidFactory, howlLog);
        } catch (Exception e) {
            throw new IllegalStateException(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.