Project

General

Profile

Download (3.35 KB) Statistics
| Branch: | Tag: | Revision:
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
      DataSourceProperties allow configuring specific properies of the datasources
23

    
24
       * cdmlib-remote.xslBasePath:
25
            alternative base path for REST services to retrieve XSL style sheets from.
26
            the base path must be on the same domain since cross domain xsl loading is
27
            not permitted
28
      -->
29
      <bean id="dataSourceProperties" class="eu.etaxonomy.cdm.remote.config.DataSourceProperties">
30
        <property name="propsMap">
31
          <map>
32
            <!--
33
            <entry key="dataSourceBeanID">
34
                <props>
35
                    <prop key="cdmlib-remote.xslBasePath">/xsl</prop>
36
                </props>
37
            </entry>
38
             -->
39
            </map>
40
        </property>
41
      </bean>
42

    
43
     <!-- ======================================================
44
       !!! THIS IS A TEMPLATE !!!
45

    
46
       In order to use it you must edit the 'url', 'username', 'password'
47
       and also 'driverClass' if you are not using mySQL.
48
       ======================================================-->
49

    
50
    <!-- the default data sources can be mapped to a specific URL root folder   -->
51
    <bean id="myCDMServerInstance1"  lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
52
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
53
        <property name="user" value="user"/>
54
        <property name="password" value="123"/>
55
        <property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_1"/>
56
    </bean>
57
    <!-- additional data sources mapped to other URL rot folders -->
58
    <!--
59
        <bean id="myCDMServerInstance2"  lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
60
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
61
        <property name="user" value="user"/>
62
        <property name="password" value="123"/>
63
        <property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_2"/>
64
    </bean>
65
     <bean id="myCDMServerInstance3"  lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
66
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
67
        <property name="user" value="user"/>
68
        <property name="password" value="123"/>
69
        <property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_3"/>
70
    </bean>
71
    -->
72
</beans>
(2-2/2)