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