(no commit message)
[cdmlib.git] / cdmlib-persistence / src / main / resources / cdm.datasource.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 <bean id="defaultDataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
11 <property name="driverClassName" value="com.mysql.jdbc.Driver" />
12 <property name="url" value="jdbc:mysql://192.168.2.10/cdm_test_lib" />
13 <property name="username" value="edit" />
14 <property name="password" value="wp5" />
15 </bean>
16 <bean id="testSqlServerDataSource" lazy-init="true"
17 class="org.springframework.jdbc.datasource.DriverManagerDataSource" >
18 <property name="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver" />
19 <property name="url" value="jdbc:microsoft:sqlserver://LAPTOPHP:1433;databaseName=cdmTest;SelectMethod=cursor" />
20 <property name="username" value="edit" />
21 <property name="password" value="wp5" />
22 </bean>
23 <bean id="testPostgreDataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
24 <property name="driverClassName" value="org.postgresql.Driver" />
25 <property name="url" value="jdbc:postgresql://192.168.1.17:5432/cdm_test" />
26 <property name="username" value="edit" />
27 <property name="password" value="schalke" />
28
29 </bean>
30 <bean id="localMysqlDataSource" lazy-init="true" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
31 <property name="driverClassName" value="com.mysql.jdbc.Driver" />
32 <property name="url" value="jdbc:mysql://localhost/cdm" />
33 <property name="username" value="edit" />
34 <property name="password" value="wp5" />
35 </bean>
36 <bean id="localDefaultHsqlDataSource"
37 lazy-init="true"
38 class="eu.etaxonomy.cdm.database.LocalHsqldb"
39 init-method="init"
40 destroy-method="destroy"
41 >
42 <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
43 <property name="username" value="sa"/>
44 <property name="password" value=""/>
45 <property name="startServer" value="true"/>
46 <property name="silent" value="true"/>
47 <!-- property name="pureUrl" value="jdbc:hsqldb:hsql://localhost/"/-->
48 <!-- property name="dbName" value="cdm"/> -->
49 <!-- <property name="databasePath" value="C:\tmp\cdmDb\"/> -->
50 </bean>
51 </beans>
52