Hi...
i use hibernate with
- java 5
- mysql 4 (local network server or vpn which is little bit slower) on windows 2005 Server
- rcp (standalone application)
- 5 or max 20 Users
- on windows xp clients
which is the best way to configure my c3p parameters i use this
Code:
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property>
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">100</property>
but sometimes when i connect through vpn over the internet (slow) i get some warnings with something about the connection pool..
thats my complete hibernate cfg xml without mapping things..
Code:
<property name="connection.username">****</property>
<property name="connection.url">jdbc:mysql://localhost/192.168.*****?autoReconnect=true</property>
<property name="dialect">
org.hibernate.dialect.MySQLMyISAMDialect
</property>
<property name="myeclipse.connection.profile">
dbname
</property>
<property name="connection.password">****</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="show_sql">true</property>
<property name="hibernate.cache.use_query_cache">true</property>
<property name="hibernate.cache.use_second_level_cache">
true
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</property>
<!-- configuration pool via c3p0-->
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property>
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">100</property>
<!-- seconds -->
thank you for tipps for configuration...