cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
Date Wed, 06 Sep 2000 19:35:45 GMT
balld       00/09/06 12:35:44

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
  Log:
  fixed connection pooling thanks to Tagunov Anthony
  
  Revision  Changes    Path
  1.12      +5 -5      xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- esql.xsl	2000/09/05 03:07:48	1.11
  +++ esql.xsl	2000/09/06 19:35:43	1.12
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.11 2000/09/05 03:07:48 balld Exp $-->
  +<!-- $Id: esql.xsl,v 1.12 2000/09/06 19:35:43 balld Exp $-->
   <!--
   
    ============================================================================
  @@ -104,8 +104,8 @@
   		<xsp:logic>
   		 static DBBroker _esql_pool = DBBroker.getInstance();
                    class EsqlSession {
  -                  DBConnection db_connection;
  -                  Connection connection;
  +                  DBConnection db_connection=null;
  +                  Connection connection=null;
                     boolean close_connection = true;
   		  String query;
                     Statement statement;
  @@ -269,9 +269,9 @@
   		</exception>
   	       } finally {
   	       if (_esql_session.close_connection) {
  -	        _esql_session.connection.close();
  +	        if (_esql_session.connection != null) _esql_session.connection.close();
   	        <xsl:if test="esql:use-connection">
  -	         _esql_session.pool.releaseConnection(_esql_db_connection);
  +	         _esql_pool.releaseConnection(_esql_session.db_connection);
   	        </xsl:if>
   	       }
   	       if (_esql_sessions.empty()) {
  
  
  

Mime
View raw message