Examples of TransactionManagerImpl


Examples of com.caucho.transaction.TransactionManagerImpl

   * @return the current transaction if it exists
   */
  public void beginSupports()
  {
    try {
      TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

      TransactionImpl xa = tm.getTransaction();
     
      if (xa != null)
        xa.setAttribute("allowRollback", Boolean.FALSE);
    } catch (RuntimeException e) {
      throw e;
View Full Code Here

Examples of com.caucho.transaction.TransactionManagerImpl

   * @return The current transaction if it exists.
   */
  public TransactionImpl getTransaction()
  {
    try {
      TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

      return tm.getTransaction();
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new EJBException(e);
    }
View Full Code Here

Examples of com.caucho.transaction.TransactionManagerImpl

   * Resumes transaction.
   */
  public void resume(Transaction xa)
  {
    try {
      TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

      tm.resume(xa);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new EJBException(e);
    }
View Full Code Here

Examples of com.caucho.transaction.TransactionManagerImpl

    init();
  }

  private void init() throws Exception
  {
    TransactionManagerImpl tm = TransactionManagerImpl.getInstance();
    UserTransactionProxy ut = UserTransactionProxy.getInstance();

    // server/16g0
    // Applications are incorrectly using TransactionManager
    // as an extended UserTransaction
    Jndi.bindDeep("java:comp/TransactionManager", tm);
    //TODO Is this alias used?
    Jndi.bindDeep("java:/TransactionManager", tm);
    Jndi.bindDeep("java:comp/TransactionSynchronizationRegistry",
                  tm.getSyncRegistry());
    Jndi.bindDeep("java:comp/UserTransaction", ut);
    Jndi.bindDeep("java:comp/ThreadPool",
                  ResinThreadPoolExecutor.getThreadPool());
  }
View Full Code Here

Examples of com.caucho.transaction.TransactionManagerImpl

      if (_manager.getPath() != null)
        _xaLog.setPath(_manager.getPath().lookup(_path));
      else
        _xaLog.setPath(Vfs.lookup(_path));

      TransactionManagerImpl tm = TransactionManagerImpl.getLocal();

      tm.setXALogManager(_xaLog);

      _xaLog.start();
    } catch (IOException e) {
      throw ConfigException.create(e);
    }
View Full Code Here

Examples of com.sun.jts.jta.TransactionManagerImpl

        return result;
    }

    public void beginJTS(int timeout) throws NotSupportedException, SystemException {
        TransactionManagerImpl tm = (TransactionManagerImpl)tmLocal.get();
        tm.begin(timeout);
        ((JavaEETransactionManagerSimplified)javaEETM).monitorTxBegin(tm.getTransaction());
    }
View Full Code Here

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

        container.doStart();

        connector = new Http11ConnectorGBean("HTTP", null, "localhost", port++, container, serverInfo);
        connector.doStart();

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

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

        connector = new HTTPSocketConnector(container, null);
        connector.setPort(5678);
        connector.setMaxThreads(50);
        connector.doStart();

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

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

    private TransactionContextManager transactionContextManager;
    private XidFactory xidFactory = new XidFactoryImpl("geronimo.test.tm".getBytes());

    protected void setUp() throws Exception {
        TransactionManagerImpl tm = new TransactionManagerImpl(1000, null, null);
        transactionContextManager = new TransactionContextManager(tm, tm);
    }
View Full Code Here

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

    private TransactionContextManager transactionContextManager;
    private XidFactory xidFactory = new XidFactoryImpl("geronimo.test.tm".getBytes());

    protected void setUp() throws Exception {
        TransactionManagerImpl tm = new TransactionManagerImpl(1000,
                new XidFactoryImpl("WHAT DO WE CALL IT?".getBytes()), null, null);
        transactionContextManager = new TransactionContextManager(tm, tm);
    }
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.