db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer ConnectionManagerImpl.java
Date Tue, 24 Feb 2004 19:24:58 GMT
arminw      2004/02/24 11:24:58

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        ConnectionManagerImpl.java
  Log:
  add more logging info
  
  Revision  Changes    Path
  1.12      +4 -4      db-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionManagerImpl.java
  
  Index: ConnectionManagerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/ConnectionManagerImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ConnectionManagerImpl.java	20 Jan 2004 17:07:48 -0000	1.11
  +++ ConnectionManagerImpl.java	24 Feb 2004 19:24:57 -0000	1.12
  @@ -190,7 +190,7 @@
               /**
                * must throw to notify user that we couldn't start a connection
                */
  -            throw new PersistenceBrokerException(e.getMessage(), e);
  +            throw new PersistenceBrokerException("Can't lookup a connection", e);
           }
           if (log.isDebugEnabled()) log.debug("localBegin was called for con " + connection);
           if (jcd.getUseAutoCommit() == JdbcConnectionDescriptor.AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE)
  @@ -224,9 +224,9 @@
           }
           catch (SQLException e)
           {
  -            log.error("Commit on underlying connection failed, try to rollback", e);
  +            log.error("Commit on underlying connection failed, try to rollback connection",
e);
               this.localRollback();
  -            throw new TransactionAbortedException();
  +            throw new TransactionAbortedException("Commit on connection failed", e);
           }
           finally
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message