Project

General

Profile

« Previous | Next » 

Revision 07de2b00

Added by Andreas Kohlbecker over 9 years ago

fixing #2966 (windows installer is no longer being build)

View differences:

src/main/installer/templates/.cdmLibrary/datasources.xml
7 7
    http://www.springframework.org/schema/context   http://www.springframework.org/schema/context/spring-context-2.5.xsd
8 8
    http://www.springframework.org/schema/tx   http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
9 9
    ">
10
    
10

  
11 11
    <!-- ======================================================
12
       NOTICE: 
13
       
12
       NOTICE:
13

  
14 14
       For each bean defined herein the cdm server will create
15 15
       and start an internal cdm server instance.
16
        
17
       These id of the datasource beans are being used as name 
16

  
17
       These id of the datasource beans are being used as name
18 18
       and root path for the dem server instances
19
       
20
       ======================================================-->
21
       
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

  
22 43
     <!-- ======================================================
23 44
       !!! THIS IS A TEMPLATE !!!
24
       
45

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

  
29 50
    <!-- the default data sources can be mapped to a specific URL root folder   -->
30 51
    <bean id="myCDMServerInstance1"  lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
31 52
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
......
34 55
        <property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_1"/>
35 56
    </bean>
36 57
    <!-- additional data sources mapped to other URL rot folders -->
37
    <!--  
58
    <!--
38 59
        <bean id="myCDMServerInstance2"  lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource">
39 60
        <property name="driverClass" value="com.mysql.jdbc.Driver"/>
40 61
        <property name="user" value="user"/>

Also available in: Unified diff