Examples of cleanupOnError()


Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

            try {
                rm.commit(inDoubtCM, xid_im, onePhase);
               
                // close the connection/transaction since it can never
                // be used again.
                inDoubtCM.cleanupOnError(StandardException.closeException());
                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
                inDoubtCM.cleanupOnError(se);
                throw wrapInXAException(se);
            } finally {
                csf.resetCurrentContextManager(inDoubtCM);
            }
           
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

            csf.setCurrentContextManager(inDoubtCM);
            try {
                rm.forget(inDoubtCM, xid_im);
               
                // close the connection/transaction since it can never be used again.
                inDoubtCM.cleanupOnError(StandardException.closeException());
                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
                inDoubtCM.cleanupOnError(se);
                throw wrapInXAException(se);
            } finally {
                csf.resetCurrentContextManager(inDoubtCM);
            }
           
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

            csf.setCurrentContextManager(inDoubtCM);
            try {
                rm.rollback(inDoubtCM, xid_im);
               
                // close the connection/transaction since it can never be used again.
                inDoubtCM.cleanupOnError(StandardException.closeException());
                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

                return;
            } catch (StandardException se) {
                // The rm threw an exception, clean it up in the approprate
                // context.  There is no transactionResource to handle the
                // exception for us.
                inDoubtCM.cleanupOnError(se);
                throw wrapInXAException(se);
            } finally {
                csf.resetCurrentContextManager(inDoubtCM);
            }
           
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

            BaseMonitor.removeRuntimeProperties(properties), false);
        usProperties.setServiceBooted();
      }
           
            if (cm != previousCM)
                cm.cleanupOnError(StandardException.closeException());
           
    } catch (Throwable t) {

      // ensure that the severity will shutdown the service
      if ((t instanceof StandardException) && (((StandardException) t).getSeverity() == ExceptionSeverity.DATABASE_SEVERITY))
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

        ;
      else
        t = Monitor.exceptionStartingModule(t);

      if (cm != previousCM) {
        cm.cleanupOnError(t);
      }

      if (ts != null) {
        ts.shutdown();
        synchronized (this) {
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      if (msg == null)
        msg = e.getClass().getName();
      REPORT(msg);

            e.printStackTrace(out.getPrintWriter());
            cm1.cleanupOnError(e);

            pass = false;
    }
        catch (Throwable t)
        {
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager.cleanupOnError()

      if (msg == null)
        msg = t.getClass().getName();
      REPORT(msg);

            t.printStackTrace(out.getPrintWriter());
            cm1.cleanupOnError(t);

            pass = false;
        }
    finally {
      contextService.resetCurrentContextManager(cm1);
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.