Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
       xmlns:tx="http://www.springframework.org/schema/tx"
4
       xmlns="http://www.springframework.org/schema/beans"
5
       xmlns:context="http://www.springframework.org/schema/context"
6
       xmlns:aop="http://www.springframework.org/schema/aop"
7

    
8
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
9
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
10
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
11
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">
12

    
13
 	<!-- Database Configuration -->
14
	<import resource="hibernate-cfg.xml"/>
15
	<import resource="dataSource.xml"/>
16

    
17
	<aop:aspectj-autoproxy proxy-target-class="true" />
18
	<tx:annotation-driven transaction-manager="txManager"/>
19

    
20
    <bean id="txManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
21
		<property name="sessionFactory" ref="sessionFactory"/>
22
	</bean>
23

    
24
	<bean id="executorService" class="java.util.concurrent.Executors" factory-method="newCachedThreadPool" destroy-method="shutdown" />
25

    
26
	<context:annotation-config/>
27

    
28
	<context:property-placeholder location="classpath:applicationContext-goldoa-service.properties" />
29

    
30
	<context:component-scan base-package="eu.dnetlib.goldoa.service" />
31
	<context:component-scan base-package="eu.dnetlib.goldoa.service.utils" />
32
	<context:component-scan base-package="eu.dnetlib.goldoa.service.dao" />
33

    
34
	<context:component-scan base-package="eu.dnetlib.goldoa.domain" />
35

    
36
</beans>
(1-1/4)