Re: cocoon connection pool

From: Gena (wong0102_at_umn.edu)
Date: 02/09/04


Date: 9 Feb 2004 14:08:09 -0800

I'd figured out my problem...thanks anyways...

wong0102@umn.edu (Gena) wrote in message news:<6ed6a432.0402090848.4c12c9d@posting.google.com>...
> Does anyone know why my mysql connection pool config in the
> cocoon.xconf file isn't working?? I'm rather new with cocoon.
> Everything works if I set the connection in my xsp file, but if I just
> make a connection pool call in xsp with <esql:pool>abc</esql:pool> I
> get a datasource exception at java.lang.Thread.run(Thread.java:536)
> java.lang.RuntimeException: Could not get the datasource
> org.apache.avalon.framework.component.ComponentException: datasources:
> ComponentSelector could not find the component for hint [abc]. Below
> is what I set in cocoon.xconf file that don't do anything
>
> <datasources>
> <jdbc name="abc" logger="core.datasources.abc">
> <pool-controller min="5" max="10"/>
> <auto-commit>false</auto-commit>
> <dburl>jdbc:mysql://128.101.207.158/abc</dburl>
> <user>Bigcorp</user>
> <password>secret</password>
> </jdbc>
> <!--other connection pools go here-->
> </datasources>
>
> Any ideas would be extremely thankful cause this is driving me crazy.
> Gena