I am using Hibernate and I have configured some c3p0 properties in its config as specified in one of the hibernate documentation. Sample configuration looks like :
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">300</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>
I came to know that c3p0 has many other properties that can be set via configuration file c3p0.properties but cannot be set via hibernate configuration like initialPoolSize, maxStatementsPerConnection, acquireRetryAttempts, etc in c3p0 Documentation.
My question is how can I verify if the properties I am setting in c3p0.properties are actually being used? One solution can be to enable log to debug level. Is there any other solution to confirm this? like may be via some class programmatically.