logging to file improved
[cdmlib.git] / cdmlib-remote / src / main / webapp / WEB-INF / datasources / configurable.xml
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 <!-- enable processing of annotations such as @Autowired and @Configuration -->
11 <context:annotation-config/>
12 <bean class="eu.etaxonomy.cdm.remote.config.DataSourceConfigurer" >
13 </bean>
14
15 <bean id="jndiHibernateProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
16 <property name="properties"><!-- This configures default hibernate properties -->
17 <props>
18 <!--
19 the hibernate.dialect will be set by the JndiDataSourceConfig accorging to the
20 according WebAppContext attributes or to the environment variable
21 -->
22 <prop key="hibernate.hbm2ddl.auto">update</prop>
23 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
24 <prop key="hibernate.show_sql">false</prop>
25 <prop key="hibernate.format_sql">false</prop>
26 <prop key="hibernate.search.default.indexBase">${eu.etaxonomy.cdm.search.index.path}</prop>
27 </props>
28 </property>
29 </bean>
30 </beans>