title: how to find number of active connection with c3p0?
body: <p>In My project am using EclipseLink JPA and I have set minimum and maximum connections using c3p0 pooled data source.</p>
  
  <p>I have passed c3p0 as a data source through spring bean in applicationContext.xml as follows,</p>
  
  <pre><code>&lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
  .....
    &lt;property name="dataSource" ref="pooledDataSource" /&gt;
  .....
  &lt;/bean&gt;
  
   &lt;bean id="pooledDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"&gt;
      &lt;property name="driverClass" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" /&gt;
      &lt;property name="jdbcUrl" value="jdbc:sqlserver://XXX.XX.XX.XX:XXXX;databaseName=XXX" /&gt;
      &lt;property name="user" value="XXX" /&gt;
      &lt;property name="password" value="XXX" /&gt;
  
      &lt;property name="minPoolSize" value="1" /&gt;
      &lt;property name="maxPoolSize" value="100" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>From this I need to monitor exact open connections.</p>