Ciao ragazzi,
sto usando in una web application hibernate
codice:
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.connection.release_mode">after_statement</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.c3p0.maxPoolSize">5</property>
<property name="hibernate.c3p0.maxIdleTime">5</property>
<property name="hibernate.c3p0.maxStatements">1</property>
<property name="hibernate.c3p0.minPoolSize">1</property>
<mapping resource="hbm/Candidati.hbm.xml"/>
<mapping resource="hbm/Comune.hbm.xml"/>
<mapping resource="hbm/ElezioniComuni.hbm.xml"/>
<mapping resource="hbm/Elezioni.hbm.xml"/>
<mapping resource="hbm/Liste.hbm.xml"/>
<mapping resource="hbm/Seggio.hbm.xml"/>
<mapping resource="hbm/Sindaco.hbm.xml"/>
<mapping resource="hbm/Utenti.hbm.xml"/>
<mapping resource="hbm/UtentiElezioni.hbm.xml"/>
<mapping resource="hbm/UtentiSeggio.hbm.xml"/>
<mapping resource="hbm/VotiCandidati.hbm.xml"/>
<mapping resource="hbm/VotiSindaco.hbm.xml"/>
<mapping resource="hbm/Province.hbm.xml"/>
<mapping resource="hbm/Regioni.hbm.xml"/>
<mapping resource="hbm/VotiListe.hbm.xml"/>
<mapping resource="hbm/VotiSpeciali.hbm.xml"/>
</session-factory>
</hibernate-configuration>
le rioghe in grassetto mi riducono in modo significativo il numero di connessioni ma non le chiudono. inoltre mi rallentano l'applicazione non fornendomi più risposte....
la richiesta resta in pending
Avete consigli?