Package com.atomikos.icatch.jta

Examples of com.atomikos.icatch.jta.UserTransactionImp


      utm.init();
      Dictionary<String, String> tmProps = new Hashtable<String, String>();
      tmProps.put("osgi.jndi.service.name", "AtomikosV3");
      utmRegistration = context.registerService(TransactionManager.class.getName(), utm, tmProps);
      // UserTransaction
      userTransaction = new UserTransactionImp();
      Dictionary<String, String> utmProps = new Hashtable<String, String>();
      utmProps.put("osgi.jndi.service.name", "AtomikosV3");
      userTransactionRegistration = context.registerService(UserTransaction.class.getName(), userTransaction, utmProps);
    } catch (Exception e) {
      LOGGER.logWarning(e.getMessage(), e);
View Full Code Here


        // Atomikos setup
        userTransactionManager = new UserTransactionManager();
        userTransactionManager.setForceShutdown(false);
        userTransactionManager.init();

        UserTransactionImp userTransactionImp = new UserTransactionImp();
        userTransactionImp.setTransactionTimeout(300);

        JtaTransactionManager jtaTransactionManager = new JtaTransactionManager();
        jtaTransactionManager.setTransactionManager(userTransactionManager);
        jtaTransactionManager.setUserTransaction(userTransactionImp);
View Full Code Here

      super.configure ( props );
    }

    protected UserTransaction getUserTransaction() {
        if (this.userTransaction == null) {
            this.userTransaction = new UserTransactionImp();
        }
        return this.userTransaction;
    }
View Full Code Here

    }
    }

    protected UserTransaction getUserTransaction() {
        if (this.userTransaction == null) {
            this.userTransaction = new UserTransactionImp();
        }
        return this.userTransaction;
    }
View Full Code Here

    }
    }

    protected UserTransaction getUserTransaction() {
        if (this.userTransaction == null) {
            this.userTransaction = new UserTransactionImp();
        }
        return this.userTransaction;
    }
View Full Code Here

TOP

Related Classes of com.atomikos.icatch.jta.UserTransactionImp

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.