Hi,

What is the proper way to configure a connection-pool with pax-jdbc-1.1.0?

With the config below I would expect that the #connections grows to a peak, 
and stays there but I still see the DB connections being closed an 
re-created like crazy... eventually causing a resource issue on the 
(Windows) DB server.

I am sure I am missing something, but I haven't been able to figure it out 
yet.

I am using mySQL driver 5.1.40 and PAX-JDBC 1.1.0.

Any help is greatly appreciated.

Erwin


#https://ops4j1.jira.com/wiki/display/PAXJDBC/Pooling+and+XA+support+in+1.0.0

osgi.jdbc.driver.class=com.mysql.jdbc.Driver 
url=jdbc:mysql://my_db_server:3306/my_db?useSSL=false 
dataSourceName=jdbc/mynonjta 
user=<user> 
password=<password> 
databaseName=my_db 
pool=dbcp2 
#jdbc.pool.timeBetweenEvictionRunsMillis=1000 
#jdbc.pool.softMinEvictableIdleTimeMillis=7000 
jdbc.pool.maxTotal=50 
jdbc.pool.maxIdle=50 
#jdbc.pool.minIdle=10


These are the DB bundles.

59 ACTIVE      org.ops4j.pax.jdbc_1.1.0
60 ACTIVE      org.ops4j.pax.jdbc.pool.dbcp2_1.1.0
61 ACTIVE      org.ops4j.pax.jdbc.config_1.1.0
62 ACTIVE      org.ops4j.pax.jdbc.pool.common_1.1.0
63 ACTIVE      org.ops4j.pax.jdbc.mysql_1.1.0
66 ACTIVE      com.mysql.jdbc_5.1.40

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to