cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/acting DatabaseAddAction.java
Date Fri, 09 Mar 2001 17:00:10 GMT
bloritsch    01/03/09 09:00:10

  Modified:    lib      Tag: xml-cocoon2 avalonapi.jar
               src/org/apache/cocoon/acting Tag: xml-cocoon2
                        DatabaseAddAction.java
  Log:
  Fixing autocommit code by adding new avalonapi.jar.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.22  +206 -199  xml-cocoon/lib/Attic/avalonapi.jar
  
  	<<Binary file>>
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.13  +6 -2      xml-cocoon/src/org/apache/cocoon/acting/Attic/DatabaseAddAction.java
  
  Index: DatabaseAddAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/DatabaseAddAction.java,v
  retrieving revision 1.1.2.12
  retrieving revision 1.1.2.13
  diff -u -r1.1.2.12 -r1.1.2.13
  --- DatabaseAddAction.java	2001/03/09 16:10:27	1.1.2.12
  +++ DatabaseAddAction.java	2001/03/09 17:00:08	1.1.2.13
  @@ -40,7 +40,7 @@
    * only one table at a time to update.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.2.12 $ $Date: 2001/03/09 16:10:27 $
  + * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/03/09 17:00:08 $
    */
   public class DatabaseAddAction extends AbstractDatabaseAction {
       private static final Map addStatements = new HashMap();
  @@ -102,7 +102,11 @@
               statement.close();
           } catch (Exception e) {
               if (conn != null) {
  -                conn.rollback();
  +                try {
  +                    conn.rollback();
  +                } catch (SQLException se) {
  +                    getLogger().debug("There was an error rolling back the transaction",
se);
  +                }
               }
   
               throw new ProcessingException("Could not add record :position = " + currentIndex,
e);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message