ugust 07, 2007 8:13 PM
> To: Jakarta Commons Developers List
> Subject: Re: [DBCP] Connection gets blocked on 9th connection.
>
> Tushar,
>
> If you want to use BasicDataSource, you need to set the pool
> properties using its setters (i.e., using the setters on the
> Basic
-
From: Phil Steitz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 07, 2007 8:13 PM
To: Jakarta Commons Developers List
Subject: Re: [DBCP] Connection gets blocked on 9th connection.
Tushar,
If you want to use BasicDataSource, you need to set the pool
properties using its setters (i.e., using the
Tushar,
If you want to use BasicDataSource, you need to set the pool
properties using its setters (i.e., using the setters on the
BasicDataSource instance). It is designed to take care of creating
and managing the underlying pool and PoolingDataSource for you.
Have a look at the examples here:
]
Sent: Tuesday, August 07, 2007 4:44 PM
To: Jakarta Commons Developers List
Subject: Re: [DBCP] Connection gets blocked on 9th connection.
Dave,
What Driver / database / settings are you using?
It seems there is underlying connection pol which prevents you from
obtaining 9th connection.
Sergey
ections it still thinks 8 as the max
> connections.
>
> Am I initializing the pool properly?
>
> --Tushar
>
>
>
>
>
> ________________
>
> From: Dave, Tushar
> Sent: Tuesday, August 07, 2007 10:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: [DB
connections.
Am I initializing the pool properly?
--Tushar
From: Dave, Tushar
Sent: Tuesday, August 07, 2007 10:43 AM
To: '[EMAIL PROTECTED]'
Subject: [DBCP] Connection gets blocked on 9th connection.
I am initializing the GeneriConnectionPool
2007/8/7, Dave, Tushar <[EMAIL PROTECTED]>:
> The call to oPool.getConnection() gets blocked indefinitely when I try
> to get the 9th connection.
> Am I missing something?
It's the normal behaviour! You have to close the connection when finished!
Antonio
-
I am initializing the GeneriConnectionPool using the following
parameters
MaxActive=3D30
MaxIdle=3D20
MinIdle=3D20
MaxWait=3D1000
TestOnBorrow=3Dtrue
ActionWhenExhasuted =3D 2(GROW)
I try to test the connection pool by using the following code.
List liCon =3D new ArrayList(); for(i