Package com.knowgate.jdc

Examples of com.knowgate.jdc.JDCConnection.rollback()


      oConn.commit();
    } catch (Exception sqle) {
      try { if (oMBox!=null) oMBox.close(); } catch (Exception e) {}
      try { if (oStmt!=null) oStmt.close(); } catch (Exception e) {}
      try { if (oCall!=null) oCall.close(); } catch (Exception e) {}
      try { if (oConn!=null) oConn.rollback(); } catch (Exception e) {}
      throw new MessagingException (sqle.getMessage(), sqle);
    }

    if (DebugFile.trace) {
      DebugFile.decIdent();
View Full Code Here


        DebugFile.writeln("SQLException " + e.getMessage());
        DebugFile.decIdent();
      }
      // Ensure that statement is closed and re-throw
      if (null!=oStmt) { try {oStmt.close();} catch (Exception ignore) {} }
      try { if (null!=oConn) oConn.rollback(); } catch (Exception ignore) {}
      throw new MessagingException (e.getMessage(), e);
    }
    catch (IOException e) {
      if (DebugFile.trace) {
        DebugFile.writeln("IOException " + e.getMessage());
View Full Code Here

      String sTrace = "";
      try { sTrace = com.knowgate.debug.StackTraceUtil.getStackTrace(sqle);
        DebugFile.writeln(sTrace);
      } catch (Exception ignore) {}
      try { if (null!=oStmt) oStmt.close(); oStmt=null; } catch (Exception ignore) {}
      try { if (null!=oConn) oConn.rollback(); } catch (Exception ignore) {}
      throw new MessagingException(DB.k_mime_msgs + " " + sqle.getMessage(), sqle);
    }
    if ((iOpenMode&MODE_BLOB)!=0) {
      // Deallocate byte array containing message body for freeing memory as soon as possible
      try { byOutStrm.close(); } catch (IOException ignore) {}
View Full Code Here

      if (oContent instanceof MimeMultipart) {
        try {
          saveMimeParts(oMsg, sMsgCharSeq, sBoundary, sGuMimeMsg, sMessageID, dPgMessage.intValue(), 0);
        } catch (MessagingException msge) {
          // Close Mbox file rollback and re-throw
          try { oConn.rollback(); } catch (Exception ignore) {}
          throw new MessagingException(msge.getMessage(), msge.getNextException());
        }
      } // fi (MimeMultipart)
    } catch (Exception xcpt) {
      try { oConn.rollback(); } catch (Exception ignore) {}
View Full Code Here

          try { oConn.rollback(); } catch (Exception ignore) {}
          throw new MessagingException(msge.getMessage(), msge.getNextException());
        }
      } // fi (MimeMultipart)
    } catch (Exception xcpt) {
      try { oConn.rollback(); } catch (Exception ignore) {}
      throw new MessagingException("MimeMessage.getContent() " + xcpt.getMessage(), xcpt);
    }

    // *************************************************************************
    // Store message recipients at k_inet_addrs
View Full Code Here

      } // next
      oInputMbox.close();
      oInputMbox=null;
      oConn.commit();
    } catch (FileNotFoundException fnfe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw fnfe;
    } catch (IOException ioe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw ioe;
    } catch (MessagingException me) {
View Full Code Here

      oConn.commit();
    } catch (FileNotFoundException fnfe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw fnfe;
    } catch (IOException ioe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw ioe;
    } catch (MessagingException me) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw me;
    } catch (SQLException sqle) {
View Full Code Here

      throw fnfe;
    } catch (IOException ioe) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw ioe;
    } catch (MessagingException me) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw me;
    } catch (SQLException sqle) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw sqle;
    } finally {
View Full Code Here

      throw ioe;
    } catch (MessagingException me) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw me;
    } catch (SQLException sqle) {
      try {oConn.rollback();} catch (Exception ignore) {}
      throw sqle;
    } finally {
      try { if (null!=oInputMbox) oInputMbox.close(); } catch (Exception ignore) {}
    }
    if (DebugFile.trace) {
View Full Code Here

    } catch (SQLException sqle) {
      if (DebugFile.trace) DebugFile.writeln("SQLException "+sqle.getMessage());
        aWarnings.add("SQLException "+sqle.getMessage());
      if (null!=oCon) {
        if (!oCon.isClosed()) {
          if (!oCon.getAutoCommit()) oCon.rollback();
          oCon.close("SendMail");
        }
        oCon = null;
      }
      if (null==oGlobalDbb && null!=oDbb) oDbb.close();
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.