Package org.springframework.transaction

Examples of org.springframework.transaction.TransactionException


          (List<DefaultTransactionStatus>) status.getTransaction();

    logger.info("prepare to commit transactions on multiple data sources.");
    Validate.isTrue(list.size() <= this.getTransactionManagers().size());

    TransactionException lastException = null;
    for(int i=list.size()-1; i>=0;i--){
      PlatformTransactionManager transactionManager=this.getTransactionManagers().get(i);
      TransactionStatus localTransactionStatus=list.get(i);
     
      try{
View Full Code Here


         (List<DefaultTransactionStatus>) status.getTransaction();

    logger.info("prepare to rollback transactions on multiple data sources.");
    Validate.isTrue(list.size() <= this.getTransactionManagers().size());

    TransactionException lastException = null;
    for(int i=list.size()-1; i>=0; i--){
      PlatformTransactionManager transactionManager=this.getTransactionManagers().get(i);
      TransactionStatus localTransactionStatus=list.get(i);
     
      try {
View Full Code Here

TOP

Related Classes of org.springframework.transaction.TransactionException

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.