title: hibernate connection pool
body: <p>I can't seem to get hibernate to use c3p0 for connection pooling, it says</p>
  
  <pre><code>12:30:35,038  INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
  12:30:35,038  INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20
  </code></pre>
  
  <p>Hibernate Config:</p>
  
  <pre><code>&lt;hibernate-configuration&gt;
    &lt;session-factory&gt;
        &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
        &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost:3306/xxx?autoReconnect=true&lt;/property&gt;
        &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;
        &lt;property name="hibernate.connection.password"&gt;xxxx&lt;/property&gt;
        &lt;property name="show_sql"&gt;false&lt;/property&gt;
        &lt;property name="dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
        &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
        &lt;property name="hibernate.c3p0.min_size"&gt;5&lt;/property&gt;
        &lt;property name="hibernate.c3p0.max_size"&gt;200&lt;/property&gt;
        &lt;property name="hibernate.c3p0.max_statements"&gt;200&lt;/property&gt;
        &lt;property name="current_session_context_class"&gt;thread&lt;/property&gt;
    &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>