On Fri, 13 Jun 2003, Jonas Björnerstedt wrote:

> Date: Fri, 13 Jun 2003 16:32:50 +0200
> From: Jonas Björnerstedt <[EMAIL PROTECTED]>
> Reply-To: Jakarta Commons Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [DBCP] Data source configuration
>
> Hello,
>
> I would like to initialize my connection pool in an application using
> something like struts-config.xml instead of jocl. I haven't found anything
> in the Commons archive or the documentation on this. Looking at the Struts
> code, it seems like a bit of work to factor out the code from the
> org.apache.struts.config package. It would be kind of silly to start doing
> this if it had already been done. Although the code is in Struts, the
> question concerns the pool, so I post it here.
>

If you start from something like org.apache.commons.dbcp.BasicDataSource,
all you need to do is instantiate the bean and then configure it's
properties before you call getConnection() the first time.  Where you get
the configuration property values is up to you, but there is nothing magic
here.

> Jonas

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to