Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 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" xmlns:aop="http://www.springframework.org/schema/aop"
4
        xmlns:context="http://www.springframework.org/schema/context"
5
        xmlns:lang="http://www.springframework.org/schema/lang" xmlns:tx="http://www.springframework.org/schema/tx"
6
        xmlns:jee="http://www.springframework.org/schema/jee" xmlns:util="http://www.springframework.org/schema/util"
7
        xmlns:jaxws="http://cxf.apache.org/jaxws"
8
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
9
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
10
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
11
       http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-3.0.xsd
12
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
13
       http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
14
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
15
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
16
       http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
17
 
18
        <description>
19
                Arquivo context principal do Spring
20
    </description>
21
 
22
     <import resource="classpath:META-INF/framework-context.xml"/>
23
 
24
        <context:component-scan base-package="br.gov.al.saude"/>
25
 
26
        <tx:annotation-driven transaction-manager="transactionManager" />
27
 
28
        <!-- Configuração DataSource -->
29
        <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
30
                <property name="driverClassName" value="org.postgresql.Driver"/>
31
                <property name="url" value="jdbc:postgresql://localhost:5432/ses_teste_jenkins"/>
32
                <property name="username" value="sc_rhd"/>
33
                <property name="password" value="sc_rhd"/>
34
        </bean>
35
 
36
        <bean id="dataSourceScgModalFramework" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
37
                <property name="driverClassName" value="org.postgresql.Driver"/>
38
                <property name="url" value="jdbc:postgresql://localhost:5432/ses_rhd_test"/>
39
                <property name="username" value="sc_scg"/>
40
                <property name="password" value="sc_scg"/>
41
        </bean>
42
 
43
        <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
44
                <property name="entityManagerFactory" ref="entityManagerFactory" />
45
                <property name="dataSource" ref="dataSource"/>
46
        </bean>
47
 
48
        <bean id="entityManagerFactory"
49
                class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
50
                <property name="persistenceXmlLocation" value="META-INF/persistence-test.xml" />
51
                <property name="persistenceUnitName" value="rhdPU" />
52
        </bean>
53
 
54
        <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/>
55
 
56
        <bean id="passwordEncoder" class="org.springframework.security.authentication.encoding.Md5PasswordEncoder"/>
57
 
58
        <!-- Define os plugins de teste do módulo -->
59
        <bean class="br.gov.al.saude.rhd.core.aceitacao.plugin.ApiTestPlugin" scope="prototype"/>
60
 
61
        <util:properties id="webServiceProperties" location="classpath:META-INF/webservice.properties"/>
62
 
63
</beans>