Roger I Martin PhD wrote: > Hello Berin, > > I went a little further and got more of an education of the workings of > avalon and cocoon (the greatness of open source :)). Got the latest cvs of > avalon and cocoon2 compiling and working with mysql databases using > tomcat-4.0.2-b1 and jdk1.4-beta3! > > In the JdbcConnectionPool I changed JdbcConnection to AbstractJdbcConnection > and in JdbcConnectionFactory changed JdbcConnection to Jdbc3Connection and > the constructors were gotten. This of course won't work with jdk1.3.x. > > Starting at line 105 in JdbcConnectionFactory: > > if ( null != this.m_connectionClass ) > { > try > { > Class clazz = > Thread.currentThread().getContextClassLoader().loadClass( > this.m_connectionClass ); > Class[] paramTypes = new Class[] { Connection.class, > String.class }; > Object[] params = new Object[] { connection, > this.m_keepAlive }; > > Constructor constructor = clazz.getConstructor( > paramTypes ); > System.out.println(this.m_connectionClass); > jdbcConnection = (Jdbc3Connection) > constructor.newInstance( params ); > System.out.println("first try"); > } > catch ( Exception e ) > { > ... > "first try" ouput occurs when run. > > Question: Do you want to make Jdbc3Connection a subclass of JdbcConnection > or use the AbtractJdbcConnection throughout the code?
I would prefer to use AbstractJdbcConnection, as there are some folks who have to create their own JdbcConnection objects for various reasons (mainly to work around idiosychrasies in code). -- "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]