Hi Michael,
You are 100% correct. I didn't getting a c3p0 datasource.
so I have removed the hibernate.c3p0.* property from the Hibernate Property files and moved to the DataSource . Now as per my configuration only 7 connections are opened(2 (Min_Size) + 5 (Max_size) = (Total) 7 ).
One more question michael.
I have started my batch with 10 Threads. my batch hangs there. Records are not processing.
10 Threads should share the 7 connections from the pool right? If the answer is yes, why the batch get hangs here?
<code>
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass" value="com.microsoft.sqlserver.jdbc.SQLServerDrive r" />
<property name="jdbcUrl" value="url" />
<property name="user" value="User" />
<property name="password" value="password" />
<property name="acquireIncrement" value="1" />
<property name="minPoolSize" value="2" />
<property name="maxPoolSize" value="5" />
</bean>
</code>
Thanks & Regards,
Arun Duraisamy