Project

General

Profile

« Previous | Next » 

Revision 089450d5

Added by Andreas Kohlbecker about 14 years ago

preparing for hibernate-c3p0 & commenting out all System.err.println

View differences:

cdmlib-persistence/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml
9 9
      <property name="connection.release_mode">after_transaction</property>
10 10
    
11 11
      <!-- Connection Pooling -->
12
      <property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
13
	  <property name="hibernate.c3p0.idle_test_period">14400</property>
14
	  <property name="hibernate.c3p0.timeout">25200</property>
15
    
12
      <property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
13
	    <!-- 
14
	        Configuring the C3P0ConnectionProvider
15
	        ========================================
16
	        see also https://www.hibernate.org/214.html
17
	        IMPORTANT:
18
	        (1)
19
	        Do NOT specify the dataSource in org.springframework.orm.hibernate3.LocalSessionFactoryBean
20
	        if using org.hibernate.connection.C3P0ConnectionProvider. 
21
	        Specifying it causes Spring to not honor the hibernate.connection.provider_class property 
22
	        specified in the Hibernate properties section. 
23
	        (2)
24
	        Hibernate uses the hibernate.c3p0.max_size property to determine if c3p0
25
	        is begin used. Therefore the max_size property MUST be set. - maybe not need in hibernate 3.4 +
26
       --><!--
27
			  <property name="hibernate.c3p0.max_size">100</property>
28
			  <property name="hibernate.c3p0.idle_test_period">14400</property>
29
			  <property name="hibernate.c3p0.timeout">25200</property>
30
       -->
31
      
16 32
      <mapping package="eu.etaxonomy.cdm.model.common"/>
17 33
      <!-- Annotation Package -->
18 34
      <mapping class="eu.etaxonomy.cdm.model.agent.Address"/>

Also available in: Unified diff