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
|
<!-- ======================================================
|
12
|
NOTICE:
|
13
|
|
14
|
For each bean defined herein the cdm server will create
|
15
|
and start an internal cdm server instance.
|
16
|
|
17
|
These id of the datasource beans are being used as name
|
18
|
and root path for the dem server instances
|
19
|
|
20
|
======================================================-->
|
21
|
|
22
|
<!-- ======================================================
|
23
|
!!! THIS IS A TEMPLATE !!!
|
24
|
|
25
|
In order to use it you must edit the 'url', 'username', 'password'
|
26
|
and also 'driverClass' if you are not using mySQL.
|
27
|
======================================================-->
|
28
|
|
29
|
<!-- the default data sources can be mapped to a specific URL root folder -->
|
30
|
<bean id="myCDMServerInstance1" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
|
31
|
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
|
32
|
<property name="user" value="edit"/>
|
33
|
<property name="password" value="wp5"/>
|
34
|
<property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_1"/>
|
35
|
</bean>
|
36
|
<!-- additional data sources mapped to other URL rot folders -->
|
37
|
<!--
|
38
|
<bean id="myCDMServerInstance2" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
|
39
|
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
|
40
|
<property name="user" value="user"/>
|
41
|
<property name="password" value="123"/>
|
42
|
<property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_2"/>
|
43
|
</bean>
|
44
|
<bean id="myCDMServerInstance3" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
|
45
|
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
|
46
|
<property name="user" value="user"/>
|
47
|
<property name="password" value="123"/>
|
48
|
<property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_3"/>
|
49
|
</bean>
|
50
|
|
51
|
<bean id="palmae" lazy-init="true" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
|
52
|
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
|
53
|
<property name="username" value="edit"/>
|
54
|
<property name="password" value="wp5"/>
|
55
|
<property name="url" value="jdbc:mysql://160.45.63.201/cdm_edit_palmae_b"/>
|
56
|
</bean>
|
57
|
|
58
|
-->
|
59
|
</beans>
|