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/components/language/markup/xsp/java esql.xsl
Date Wed, 17 Jan 2001 14:30:08 GMT
bloritsch    01/01/17 06:30:08

  Modified:    src/org/apache/cocoon/components/language/markup/xsp/java
                        Tag: xml-cocoon2 esql.xsl
  Log:
  Fixed issue with unhandled exceptions
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.32  +8 -3      xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/xsp/java/Attic/esql.xsl,v
  retrieving revision 1.1.2.31
  retrieving revision 1.1.2.32
  diff -u -r1.1.2.31 -r1.1.2.32
  --- esql.xsl	2001/01/17 02:36:51	1.1.2.31
  +++ esql.xsl	2001/01/17 14:30:08	1.1.2.32
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.1.2.31 2001/01/17 02:36:51 balld Exp $-->
  +<!-- $Id: esql.xsl,v 1.1.2.32 2001/01/17 14:30:08 bloritsch Exp $-->
   <!--
   
    ============================================================================
  @@ -267,8 +267,13 @@
             _esql_connection.connection = _esql_connection.db_connection.getConnection();
           </xsl:when>
           <xsl:when test="esql:pool and $environment = 'cocoon2'">
  -          _esql_connection.datasource = (DataSourceComponent) _esql_selector.select(String.valueOf(<xsl:copy-of
select="$pool"/>));
  -          _esql_connection.connection = _esql_connection.datasource.getConnection();
  +          try {
  +              _esql_connection.datasource = (DataSourceComponent) _esql_selector.select(String.valueOf(<xsl:copy-of
select="$pool"/>));
  +              _esql_connection.connection = _esql_connection.datasource.getConnection();
  +          } catch (Exception cmse) {
  +              cocoonLogger.error("Could not get the datasource", cmse);
  +              throw new RuntimeException("Could not get the datasource" + cmse.toString());
  +          }
           </xsl:when>
           <xsl:otherwise>
             <xsl:if test="esql:driver">
  
  
  

Mime
View raw message