After short investigation, if we don't specify BasicDataSource parameters
belos at our struts-config.xml, default will be

maxActive = 8
maxIdle = 8
minIdle = 0

all values at org.apache.commons.pool.impl.GenericObjectPool

cmiiw

best regards
-GI.

----- Original Message -----
From: "Gede Indrawan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, November 21, 2003 11:01 AM
Subject: Re: MySql BasicDataSource Connection


> Well, at posting before I just want to point out the use of
> "driverClassName" rather than "driverClass" if we use BasicDataSource.
> And the others parameter --really from my develop. appl. config.-- still
no
> concern.
> But it just run. Thanx to point out the others! I will take some
> investigation to this.
>
> best regards
> -GI.
>
> ----- Original Message -----
> From: "Oliver Meyn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, November 21, 2003 6:49 AM
> Subject: Re: MySql BasicDataSource Connection
>
>
> > Hi All,
> >
> > After a similar struggle to the original poster I managed to get the
> > BasicDataSource to work, but I wonder about the properties you're
> > setting below - the javadoc on BasicDataSource doesn't mention maxCount
> > or minCount (I gather maxActive and minIdle are their equivalents) so
> > are those lines doing anything in your config?  It's a bit tricky to
> > test, but of course a useful feature.
> >
> > Thanks,
> > Oliver
> >
> > On Mon, 2003-11-17 at 23:11, Gede Indrawan wrote:
> > > I use data-source defintion below and no problem with it
> > >   <data-source type="org.apache.commons.dbcp.BasicDataSource">
> > >    <set-property property="driverClassName"
> > > value="org.gjt.mm.mysql.Driver"/>
> > >    <set-property property="url"
> value="jdbc:mysql://localhost/telkomsel"/>
> > >    <set-property property="maxCount" value="5"/>
> > >    <set-property property="minCount" value="1"/>
> > >    <set-property property="username" value="root"/>
> > >    <set-property property="password" value="blahblah"/>
> > >   </data-source>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to