Package org.fto.jthink.transaction

Examples of org.fto.jthink.transaction.TransactionFactory


    TransactionManager transactionManager = new DefaultTransactionManager(resManager, config);
    /* 将事务管理器加入到资源管理器中 */
    resManager.setResource(TransactionManager.class.getName(), transactionManager);
   
    /* 返回在fto-jthink.xml中配置的JDBC事务 */
    TransactionFactory transactionFactory = transactionManager.getTransactionFactory("SampleTransaction");
    JDBCTransaction transaction  = (JDBCTransaction)transactionFactory.create();
    /* 将此事务处理对象加入到事务管理器中 */
    transactionManager.addTransaction(JDBCTransaction.class.getName(), transaction);
    resManager.setResource(JDBCTransaction.class.getName(), transaction);
   
    return resManager;
View Full Code Here


      TransactionManager transactionManager = new DefaultTransactionManager(resManager, jthinkConfig);
      resManager.setResource(TransactionManager.class.getName(), transactionManager);
     
      // 加入WEB端事务到事务管理器
      logger.debug("初始化Web端事务, WebTransaction.");
      TransactionFactory transactionFactory = transactionManager.getTransactionFactory("WebTransaction");
      JDBCTransaction transaction  = (JDBCTransaction)transactionFactory.create();
      transactionManager.addTransaction(JDBCTransaction.class.getName(), transaction);
     
    }
   
    return resManager;
View Full Code Here

TOP

Related Classes of org.fto.jthink.transaction.TransactionFactory

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.