]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.webapp.war/WEB-INF/applicationContext.xml
[maven-release-plugin] copy for tag argeo-slc-0.12.1
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.webapp.war / WEB-INF / applicationContext.xml
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:tx="http://www.springframework.org/schema/tx"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
9
10 <!--
11 <import resource="classpath:/org/argeo/slc/server/spring/jmx.xml" />
12 -->
13 <import resource="osgi.xml" />
14 <import resource="security.xml" />
15
16 <!-- Hibernate instrumentation-->
17 <bean id="osivInterceptor"
18 class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor">
19 <property name="sessionFactory" ref="sessionFactory" />
20 </bean>
21
22
23 <!-- Properties -->
24 <bean
25 class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"
26 lazy-init="false">
27 <property name="contextOverride" value="true" />
28 <property name="ignoreUnresolvablePlaceholders" value="true" />
29 </bean>
30
31 <!-- Web Services transactions -->
32 <aop:config>
33 <aop:pointcut id="epMethods"
34 expression="execution(* org.springframework.web.servlet.mvc.Controller.handleRequest(..))" />
35 <aop:advisor advice-ref="epAdvice" pointcut-ref="epMethods" />
36 </aop:config>
37
38 <tx:advice id="epAdvice" transaction-manager="hibernateTransactionManager">
39 <tx:attributes>
40 <tx:method name="*" propagation="REQUIRED" />
41 </tx:attributes>
42 </tx:advice>
43
44 </beans>