Hi,

if you are using DataSources, they never be pooled by OJB
(when using ConnectionFactory implementations shipped with OJB).
As Jason said in his post, "OJB suppose" that the DataSource service
do that stuff. If you need pooling of DataSources by OJB then
you can easily implement your own ConnectionFactory class
doing this for you.

regards,
Armin

----- Original Message -----
From: "Peter Costa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 9:45 PM
Subject: JNDI and connection pooling


> Hi,
>
> I am using version 0.9.8 and have set up JNDI and connection pooling
in
> my repository.xml file. The problem is that it seems the connection
> pooling is not working. Each time it gets a new connection. It works
> fine when I don't use JNDI. I was wondering if anyone has had any
issues
> with this before and could recommend what I should do.
>
> Peter
> <jdbc-connection-descriptor
>
> platform="MsSQLServer"
>
> jdbc-level="2.0"
>
> jndi-datasource-name="java:comp/env/jdbc/Analytics6">
>
> <connection-pool
>
> maxActive="25"
>
> maxIdle="10"
>
> maxWait="-1"
>
> minEvictableIdleTimeMillis="10000"
>
> numTestPerEvictionRun="10"
>
> timeBetweenEvictionRunsMillis="10000"
>
> whenExhaustedAction="1"
>
> testOnBorrow="true"
>
> testWhileIdle="true"
>
> testOnReturn="true"
>
> validationQuery="select count(1) from OJB_HL_SEQ"
>
> />
>
> </jdbc-connection-descriptor>
>
>



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

Reply via email to