Package org.apache.sandesha2.storage

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


       
        if(transaction != null && transaction.isActive()) transaction.commit();
        transaction = null;
      } finally {
        if (transaction != null && transaction.isActive())
          transaction.rollback();
      }
    }
    if (log.isDebugEnabled())
      log.debug("Exit: FaultManager::processMessagesForFaults, " + response);
    return response;
View Full Code Here


        } catch (SandeshaStorageException ex){
          if (log.isDebugEnabled())
            log.debug("Caught an exception deleting the RMD bean", ex)
        } finally {
          if(tran!=null && tran.isActive())
            tran.rollback();
        }

                                // Return false if an Exception hasn't been thrown.
        if (log.isDebugEnabled())
          log.debug("Exit: CreateSeqMsgProcessor::processInMessage " + Boolean.FALSE);       
View Full Code Here

      if (senderBean == null) {
        if (log.isDebugEnabled())
          log.debug("Exit: SenderWorker::run, !continueSending");
       
        if(transaction != null && transaction.isActive()) {
          transaction.rollback();
          transaction = null;
        }
       
        return;
      }
View Full Code Here

         
          if(transaction != null && transaction.isActive()) transaction.commit();
          transaction = null;
        } finally {
          if(transaction != null && transaction.isActive()) {
            transaction.rollback();
            transaction = null;
          }
        }
      }
View Full Code Here

        lock.removeWork(workId);
      }

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

    {
      if (log.isDebugEnabled())
        log.debug(e1);
    } finally {
      if (transaction != null) {
        transaction.rollback();
        transaction = null;
      }
    }
  }
 
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

    } 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(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

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.