(no commit message)
[cdmlib.git] / cdmlib-remote / src / main / webapp / WEB-INF / applicationContext.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:tx="http://www.springframework.org/schema/tx"
5 xmlns:context="http://www.springframework.org/schema/context"
6 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
8 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
9 ">
10
11 <context:component-scan base-package="eu.etaxonomy.cdm" />
12
13 <import resource="classpath:/eu/etaxonomy/cdm/persistence.xml" />
14
15 <bean id="dataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
16 <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
17 <!--
18 <property name="driverClassName" value="com.p6spy.engine.spy.P6SpyDriver"/>
19 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_portal"/>
20 <property name="url" value="jdbc:mysql://127.0.0.1/cdm_portal_test"/>
21 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_edit_cichorieae"/>
22 -->
23 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_portal_test"/>
24
25 <property name="username" value="edit"/>
26 <property name="password" value="wp5"/>
27 </bean>
28
29 <!-- This configures default properties, which can overridden with the file specified by the location property -->
30 <bean id="hibernateProperties"
31 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
32 <property name="properties">
33 <props>
34 <prop key="hibernate.hbm2ddl.auto">validate</prop>
35 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
36 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
37 <prop key="hibernate.show_sql">false</prop>
38 <prop key="hibernate.format_sql">false</prop>
39 </props>
40 </property>
41 </bean>
42
43 </beans>