Package net.jini.core.transaction.server

Examples of net.jini.core.transaction.server.TransactionManager


    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.afterPropertiesSet();

    JiniTransactionManagerFactoryBean txFactory = new JiniTransactionManagerFactoryBean();
    txFactory.afterPropertiesSet();
    TransactionManager tm = (TransactionManager) txFactory.getObject();
    //assertNotNull(tm);
  }
View Full Code Here


    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.setServiceClass(TransactionManager.class);
    serviceFactory.setServiceName(getTransactionManagerName());
    serviceFactory.afterPropertiesSet();
   
    TransactionManager txManager = (TransactionManager) serviceFactory.getObject();
    return txManager;
  }
View Full Code Here

     * @exception TestException
     *          If an exception has been thrown during TransactionManager
     *          creation or created TransactionManager is null.
     */
    public TransactionManager getTxnManager() throws TestException {
        TransactionManager mgr = null;

        try {
            String txnMgrName = getConfig().getStringConfigVal(pkgName + ".txnManager",
                    TransactionManager.class.getName());
            printTxnMgrInfo(txnMgrName);
View Full Code Here

   * NB: There are better ways of doing this which could ensure
   *     we never make an unnecessary remote call that we may
   *     want to explore later.
   */
  if (txn == null) {
      final TransactionManager mgr =
    (TransactionManager)
        transactionManagerPreparer.prepareProxy(tr.mgr);
      tr = new ServerTransaction(mgr, tr.id);
      tr.join(participantProxy, crashCount);
      txn = txnTable.put(tr);
View Full Code Here

        // Creating a lookup locator
        LookupLocator locator = new LookupLocator(uri);
        ServiceRegistrar sr = locator.getRegistrar();

        TransactionManager tm = (TransactionManager) sr.lookup(tmpl);
        return tm;
    }
View Full Code Here

        // Creating a lookup locator
        LookupLocator locator = new LookupLocator(uri);
        ServiceRegistrar sr = locator.getRegistrar();

        TransactionManager tm = (TransactionManager) sr.lookup(tmpl);
        return tm;
    }
View Full Code Here

   * NB: There are better ways of doing this which could ensure
   *     we never make an unnecessary remote call that we may
   *     want to explore later.
   */
  if (txn == null) {
      final TransactionManager mgr =
    (TransactionManager)
        transactionManagerPreparer.prepareProxy(tr.mgr);
      tr = new ServerTransaction(mgr, tr.id);
      tr.join(participantProxy, crashCount);
      txn = txnTable.put(tr);
View Full Code Here

   * NB: There are better ways of doing this which could ensure
   *     we never make an unnecessary remote call that we may
   *     want to explore later.
   */
  if (txn == null) {
      final TransactionManager mgr =
    (TransactionManager)
        transactionManagerPreparer.prepareProxy(tr.mgr);
      tr = new ServerTransaction(mgr, tr.id);
      tr.join(participantProxy, crashCount);
      txn = txnTable.put(tr);
View Full Code Here

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

        // Get Mailbox references
  TransactionManager[] mbs = getTransactionManagers(2);
  TransactionManager txnmgr1 = mbs[0];
  TransactionManager txnmgr2 = mbs[1];

  Created txn1 = getCreated(txnmgr1, DURATION);
  ServerTransaction st1 = new ServerTransaction(txnmgr1, txn1.id);
  Created txn2 = getCreated(txnmgr2, DURATION);
  ServerTransaction st2 = new ServerTransaction(txnmgr2, txn2.id);
View Full Code Here

    private final long DURATION = 1*MINUTES;

    public void run() throws Exception {
  logger.log(Level.INFO, "Starting up " + this.getClass().toString());

        TransactionManager mb = getTransactionManager();

  logger.log(Level.INFO, "Generating a transaction");
  Created txn = getCreated(mb, DURATION);

  logger.log(Level.INFO, "Checking lease");
View Full Code Here

TOP

Related Classes of net.jini.core.transaction.server.TransactionManager

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.