Hi Chris,
I changed te data source definition to a c3p0 pooled data source as in your example and removed the redundant hibernate properties. Now everything works fine and connections are retrieved from c3p0!
Code:
<2008-02-13 17:51:28,500> Using transaction object [org.springframework.orm.hibernate3.HibernateTransactionManager$HibernateTransactionObject@590510]
<2008-02-13 17:51:28,500> Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
<2008-02-13 17:51:28,500> opened session at timestamp: 4927166416896000
<2008-02-13 17:51:28,500> Opened new Session [org.hibernate.impl.SessionImpl@5b6d00] for Hibernate transaction
<2008-02-13 17:51:28,500> Preparing JDBC Connection of Hibernate Session [org.hibernate.impl.SessionImpl@5b6d00]
<2008-02-13 17:51:28,500> begin
<2008-02-13 17:51:28,500> opening JDBC connection
<2008-02-13 17:51:28,500> resource age is okay: com.mchange.v2.c3p0.impl.NewPooledConnection@8ddb93 ---> age: 34782 max: 3600000 [com.mchange.v2.resourcepool.BasicResourcePool@1d8d237]
<2008-02-13 17:51:28,500> trace com.mchange.v2.resourcepool.BasicResourcePool@1d8d237 [managed: 10, unused: 9, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1041876)
<2008-02-13 17:51:28,500> current autocommit status: true
<2008-02-13 17:51:28,500> disabling autocommit
<2008-02-13 17:51:28,500> after transaction begin
<2008-02-13 17:51:28,500> Exposing Hibernate transaction as JDBC transaction [com.mchange.v2.c3p0.impl.NewProxyConnection@3a5a9c]
<2008-02-13 17:51:28,515> Bound value [org.springframework.jdbc.datasource.ConnectionHolder@112d7ae] for key [com.mchange.v2.c3p0.ComboPooledDataSource@7f58ef[ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass -> oracle.jdbc.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 7f58ef, idleConnectionTestPeriod -> 300, initialPoolSize -> 10, jdbcUrl -> jdbc:oracle:thin:@xyz:1521:SID, loginTimeout -> 0, maxIdleTime -> 3600, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ]] to thread [QuartzScheduler_Worker-4]
<2008-02-13 17:51:28,515> Bound value [org.springframework.orm.hibernate3.SessionHolder@a8a314] for key [org.hibernate.impl.SessionFactoryImpl@1e8fa70] to thread [QuartzScheduler_Worker-4]
<2008-02-13 17:51:28,515> Initializing transaction synchronization
Thank you a lot!
Sebastian