Package org.apache.sandesha2.storage

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


          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

    } catch (Exception e) {
      // Just log the exception
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if (reportTransaction!=null && reportTransaction.isActive()) reportTransaction.rollback();
    }

    return sequenceReport;
  }
View Full Code Here

    } catch (Exception e) {
      // just log the error
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if (reportTransaction!=null && reportTransaction.isActive()) reportTransaction.rollback();
    }

    return sandeshaReport;
  }
View Full Code Here

      if(tran != null && tran.isActive()) tran.commit();
      tran = null;
   
    } finally {
      if(tran!=null && tran.isActive())
        tran.rollback();
    }
  }
 
  /**
   * Clients can use this to create a sequence sequence.
View Full Code Here

    } catch (Exception e) {
      // Just log the exception
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if(reportTransaction != null && reportTransaction.isActive()) reportTransaction.rollback();
    }
  }

  private static SOAPEnvelope configureCloseSequence(Options options, ConfigurationContext configurationContext)
      throws SandeshaException {
View Full Code Here

    } catch (Exception e) {
      // Just log the exception
      if(log.isDebugEnabled()) log.debug("Exception", e);
    } finally {
      if(reportTransaction != null && reportTransaction.isActive()) {
        reportTransaction.rollback();
      }
    }

    return null;
  }
View Full Code Here

        }

      } catch (Exception e) {
        if (transaction != null) {
          try {
            transaction.rollback();
            rolebacked = true;
          } catch (Exception e1) {
            String message = SandeshaMessageHelper.getMessage(
                SandeshaMessageKeys.rollbackError, e1
                    .toString());
View Full Code Here

      returnValue = InvocationResponse.SUSPEND;

      // rolling back the transaction
      if (!withinTransaction) {
        try {
          transaction.rollback();
          msgCtx.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, Sandesha2Constants.VALUE_FALSE);
          rolebacked = true;
        } catch (Exception e1) {
          String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.rollbackError, e1.toString());
          log.debug(message, e);
View Full Code Here

      msgCtx.pause();
      returnValue = InvocationResponse.SUSPEND;
     
      if (!withinTransaction) {
        try {
          transaction.rollback();
          msgCtx.setProperty(Sandesha2Constants.WITHIN_TRANSACTION, Sandesha2Constants.VALUE_FALSE);
          rolebacked = true;
        } catch (Exception e1) {
          String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.rollbackError, e1.toString());
          log.debug(message, e);
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.