<import resource="osgi.xml" />
- <!--
- Hibernate instrumentation-->
+ <!-- Hibernate instrumentation-->
<bean id="osivInterceptor"
class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor">
<property name="sessionFactory" ref="sessionFactory" />
class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"
lazy-init="false">
<property name="contextOverride" value="true" />
- <property name="properties">
- <props>
- <prop key="sessionFactoryParentBean">
- slcServerDefault.sessionFactory.HSQL
- </prop>
- </props>
- </property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
+ <!-- Web Services transactions -->
+ <aop:config>
+ <aop:pointcut id="epMethods"
+ expression="execution(* org.springframework.web.servlet.mvc.Controller.handleRequest(..))" />
+ <aop:advisor advice-ref="epAdvice" pointcut-ref="epMethods" />
+ </aop:config>
+
+ <tx:advice id="epAdvice" transaction-manager="hibernateTransactionManager">
+ <tx:attributes>
+ <tx:method name="*" propagation="REQUIRED" />
+ </tx:attributes>
+ </tx:advice>
+
</beans>
\ No newline at end of file