You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Saulius <sa...@gmail.com> on 2005/06/05 21:12:24 UTC
database connection and groovy
Hi,
I'm using a script generator (with groovy) to fetch data from a
database (mysql) and generate xml, but I can't find a way to make groovy
use the connection pool defined in web.xml instead of creating a new one
with Sql.newInstance() in each groovy file. I've found how to do this
in java
(http://cocoon.apache.org/2.1/developing/datasources.html#N10071),
but since I'm starting to learn java, I can't port this to groovy.
Can you suggest a way to do this?
Thanks
--
Saulius
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org