tags:

views:

84

answers:

0

Hi.

I'm trying to wrap C3P0 under OSGi, but it throws the following error:

An attempt by a client to checkout a Connection has timed out

Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5d0e2c9 -- timeout at awaitAvailable()

After the run, the database has 3 connection left in SLEEP status.

If I run the C3P0 app without OSGi directly, all is working fine.

Any idea how to solve this?

Thanks.