cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: javax.sql.DataSource
Date Tue, 19 Jun 2001 19:51:57 GMT
kesha wrote:
> Hi guys,
> I've tried to deploy cocoon into WL 6.0 server and use DataSource as a jdbc
> Connection factory. Doing that, I've found a couple of bugs. Could anybody
> to commit the following changes into CVS:
> 1. cocoon.roles, role name
> "org.apache.avalon.excalibur.datasource.DataSourceComponentSelector". The
> hint for j2ee points to the wrong class name. Insteed of
> "org.apache.avalon.excalibur.datasource.J2eeDataSource" it points to
> "org.apache.excalibur.datasource.J2eeDataSource".
> 2. esql.xsl. In case when a connection is obtained from DataSource one
> should not invoke setAutoCommit() method. Otherwise SQLException will be
> thrown. Looking at esql.xsl, I've found that you catch any exceptions thrown
> by this method but you rethrow RuntimeException which is incorrect. I don't
> think you should throw any exception in this exception handler. See esql.xsl
> line 362.

I'm glad that works for you!
I have applied your fixes, and am committing them now. (esql.xsl is a bit tricky
in that it has to be updated in three repositories....)
View raw message