Package org.apache.sandesha2.storage

Examples of org.apache.sandesha2.storage.Transaction.rollback()


    }
    finally {
      if (log.isDebugEnabled()) log.debug("SandeshaInHandler::invoke Doing final processing");
      if (transaction != null && transaction.isActive()) {
        try {
          transaction.rollback();
          transaction = null;
        } catch (Exception e) {
          String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.rollbackError, e.toString());
          log.debug(message, e);
        }
View Full Code Here


    } catch (Exception e) {
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if(t != null && t.isActive()) {
        try {
          t.rollback();
        } catch(Exception e2) {
          if(log.isDebugEnabled()) log.debug("Exception during rollback", e2);
        }
      }
    }
View Full Code Here

      if(transaction != null && transaction.isActive()) transaction.commit();
      transaction = null;
    }
    finally {
      if (transaction != null && transaction.isActive())
        transaction.rollback();
    }
    if (log.isDebugEnabled())
      log.debug("Exit: SandeshaGlobalInHandler::processApplicationMessage");
  }
}
View Full Code Here

      String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.sendMsgError, e.toString());
      log.debug(message, e);
    } finally {
      if (transaction != null && transaction.isActive()) {
        try {
          transaction.rollback();
          transaction = null;
        } catch (Exception e) {
          String message = SandeshaMessageHelper
              .getMessage(SandeshaMessageKeys.rollbackError, e.toString());
          log.debug(message, e);
View Full Code Here

      if (log.isErrorEnabled())
        log.error(e);
    } finally {
      if(transaction != null && transaction.isActive()) {
        try {
          transaction.rollback();
        } catch (SandeshaStorageException e) {
          if (log.isDebugEnabled())
            log.debug("Caught exception rolling back transaction", e);
        }
      }
View Full Code Here

     
    } catch(Exception e) {
      // There isn't much we can do here, so log the exception and continue.
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if(transaction != null && transaction.isActive()) transaction.rollback();
    }
   
    if (log.isDebugEnabled()) log.debug("Exit: Sender::unblockTransportThreads");
  }
   
View Full Code Here

 
    } catch(Exception e) {
      // There isn't much we can do here, so log the exception and continue.
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if(tran != null && tran.isActive()) tran.rollback();
    }
   
    if(log.isDebugEnabled()) log.debug("Exit: Sender::checkForOrphanMessages");
  }
}
View Full Code Here

          catch(Exception e){
            // Just log the error
            if(log.isDebugEnabled()) log.debug("Exception", e);
          } finally {
            if(transaction != null && transaction.isActive()) {
              transaction.rollback();
              transaction = null;
            }
          }
   
        }//end while
View Full Code Here

          .getMessage(SandeshaMessageKeys.invokeMsgError);
      if(log.isDebugEnabled()) log.debug(message, e);
    } finally {
      if (transaction != null && transaction.isActive()) {
        try {
          transaction.rollback();
        } catch (Exception e) {
          String message = SandeshaMessageHelper.getMessage(
              SandeshaMessageKeys.rollbackError, e.toString());
          if(log.isDebugEnabled()) log.debug(message, e);
        }
View Full Code Here

       
        throw (AxisFault)e;
      } finally {
        if (transaction != null && transaction.isActive()) {
          try {
            transaction.rollback();
          } catch (Exception e1) {
            String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.rollbackError, e1.toString());
            log.debug(message, e1);
          }
        }
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.