(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 //ACCOUNTS
19 <property name="username" value="xxx"/>
20 <property name="password" value="xxx"/>
21 //DRIVERS
22 <property name="driverClassName" value="com.p6spy.engine.spy.P6SpyDriver"/>
23 <property name="driverClassName" value="org.h2.Driver"/>
24 //TEST@LOCAL
25 <property name="url" value="jdbc:mysql://127.0.0.1/cdm_portal_test"/>
26 <property name="url" value="jdbc:h2:C:/Dokumente und Einstellungen/a.mueller/.cdmLibrary/writableResources/h2/LocalH2/CDM"/>
27 //TEST@192.168.2.10
28 <property name="username" value="xxx"/>
29 <property name="password" value="xxx"/>
30 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_portal"/>
31 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_portal_test"/>
32 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_test_andreasM2"/>
33 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_test_andreasK1"/>
34 //
35 <property name="username" value="xxx"/>
36 <property name="password" value="xxx"/>
37 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_edit_diptera"/>
38 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_edit_palmae"/>
39 //PREVIEW@87.106.88.177
40 <property name="url" value="jdbc:mysql://87.106.88.177:80/cdm_edit_cichorieae"/>
41 <property name="url" value="jdbc:mysql://87.106.88.177:80/cdm_edit_diptera"/>
42 -->
43 <!-- Configure the webapp -->
44 <property name="url" value="jdbc:mysql://87.106.88.177:80/cdm_edit_palmae"/>
45 <property name="password" value="xxx"/>
46 <property name="username" value="xxx"/>
47
48 </bean>
49
50 <!-- This configures default properties, which can overridden with the file specified by the location property -->
51 <bean id="hibernateProperties"
52 class="org.springframework.beans.factory.config.PropertiesFactoryBean">
53 <property name="properties">
54 <props>
55 <prop key="hibernate.hbm2ddl.auto">validate</prop>
56 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
57 <prop key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
58 <prop key="hibernate.show_sql">false</prop>
59 <prop key="hibernate.format_sql">false</prop>
60 </props>
61 </property>
62 </bean>
63
64 </beans>