Hi All,
I using org.hibernate.connection.C3P0ConnectionProvider as my connection Provider class to connect to my oracle DB using Java.
My initialPoolSize -> 0 and minPoolSize -> 0, maxPoolSize -> 20 But in my catalina logs I can see the message Initializing c3p0 pool during the program start up and I’m able to see the error from DB (DB is temporarily down) inside the logs.
Does it mean that during the tomcat start up it will make a connection to Database. Since Database is down it will retry to make the connection? Any one able to give me a correct explanation. Thanks in advance.
Here is some of my properties
com.mchange.v2.c3p0.PoolBackedDataSource@62bb9e11 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@f4f04ca5 [ acquireIncrement -> 3, acquireRetryAttempts -> 1, acquireRetryDelay -> 3000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 10000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 31s7519vmrrbf9vfcwit|17cb546b, idleConnectionTestPeriod -> 0, initialPoolSize -> 0, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 60, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 20, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 0, preferredTestQuery -> SELECT 1, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 31s7519vmrrbf9vfcwit|3c1df42e, numHelperThreads -> 3 ]