Examples of cleanupOnError()


Examples of com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler.cleanupOnError()

                handler.pauseProducer(d, pausedProducer, con);
   
         } catch (BrokerException ex) {
            int status = ex.getStatusCode();
            if (status == Status.ERROR && ref!= null && d != null)
                handler.cleanupOnError(d, ref);
   
            // rethrow
            throw ex;
         }
   
View Full Code Here

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

    {
      if (SanityManager.DEBUG)
        SanityManager.showTrace(e);

            //Assume database is not active. DERBY-4856 thread dump
            cm.cleanupOnError(e, false);
    }
  }

  /*
   * Runnable methods
View Full Code Here

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

        usProperties.setServiceBooted();
      }
           
            if (cm != previousCM) {
                //Assume database is not active. DERBY-4856 thread dump
                cm.cleanupOnError(StandardException.closeException(), false);
            }
           
    } catch (Throwable t) {

      StandardException se;
View Full Code Here

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

      else
        se = Monitor.exceptionStartingModule(t);

      if (cm != previousCM) {
                //Assume database is not active. DERBY-4856 thread dump
                cm.cleanupOnError(se, false);
      }

      if (ts != null) {
        ts.shutdown();
        synchronized (this) {
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.