Eung-ju Park wrote:
> 
> Why JdbcDataSource do not load jdbc driver internaly?

It is set up for an environment where the class is loaded once.
The idea is that you "install" the driver yourself by loading
it's class.  In a servlet environment, this can be done at
init time--which is perfect for this application.  That is
why it was designed this way.

> I load jdbc driver class in my block.
> but block's class loader is child of JdbcDataSource's class loader
> therefore JdbcDataSource do not load jdbc driver. :-)
> because JdbcDataSource's class loader do not access parents class loader.
> ...

I see. In order for this to be usable in multiple environments, we need
to have the JdbcDataSource load the class at Config time.  That can be
fixed.

> PS: org.apache.avalon.util.datasource.DataSourceComponent use deprecated
> Configuration related classes.

Yes I know.  I haven't gotten around to fixing that one yet.  The problem
is that I really don't have enough time.  It is used in Cocoon which hasn't
been upgraded to the new Configuration scheme yet.  This is painful, and
will do it when I have time...

> PS: sorry for ugly english...... :-(

No appology needed.

Reply via email to