Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote-webapp / src / main / webapp / WEB-INF / datasources / configurable.xml @ 210948b1

History | View | Annotate | Download (1.86 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns="http://www.springframework.org/schema/beans"
3
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
  xmlns:context="http://www.springframework.org/schema/context"
5
  xsi:schemaLocation="http://www.springframework.org/schema/beans
6
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7
    http://www.springframework.org/schema/context
8
    http://www.springframework.org/schema/context/spring-context-2.5.xsd">
9

    
10
    <bean class="eu.etaxonomy.cdm.opt.config.DataSourceConfigurer" >
11
    </bean>
12

    
13
    <bean id="jndiHibernateProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
14
        <property name="properties"><!-- This configures default hibernate properties -->
15
            <props>
16
              <!--
17
                the hibernate.dialect will be set by the JndiDataSourceConfig according to the
18
                according WebAppContext attributes or to the environment variable
19
              -->
20
              <prop key="hibernate.hbm2ddl.auto">validate</prop><!-- !!! must never be set to 'update' !!! -->
21
              <prop key="hibernate.cache.region.factory_class">org.hibernate.cache.internal.NoCachingRegionFactory</prop>
22
              <prop key="hibernate.show_sql">false</prop>
23
              <prop key="hibernate.format_sql">false</prop>
24
              <prop key="hibernate.search.default.directory_provider">org.hibernate.search.store.impl.FSDirectoryProvider</prop>
25
              <prop key="hibernate.search.default.indexBase">${eu.etaxonomy.cdm.search.index.path}</prop><!-- set in applicationContext.xml -->
26

    
27
              <!-- disabling hibernate search for testing (speed up and lesser heap usage)
28
              <prop key="hibernate.search.autoregister_listeners">false</prop>
29
              -->
30

    
31
            </props>
32
        </property>
33
    </bean>
34
</beans>
Add picture from clipboard (Maximum size: 40 MB)