<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
		http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
	<!--
		swap comments on the following two lines if you want to test on a real
		db (derby)
	-->
<!--	<import resource="applicationContext-issn-derby.xml" /> -->
	<import resource="hsql-context.xml" />
<!-- 	<import resource="applicationContext-issn-hib.xml" /> -->

	<!-- Transactions -->

	<tx:advice id="issnTxAdvice" transaction-manager="issnTransactionManager">
		<tx:attributes>
			<tx:method name="*" />
		</tx:attributes>
	</tx:advice>

	<aop:config proxy-target-class="true">
		<aop:pointcut id="issnDAOMethods"
			expression="execution(* eu.dnetlib.enabling.is.sn.resourcestate.hib.*.*(..))" />

		<aop:advisor advice-ref="issnTxAdvice" pointcut-ref="issnDAOMethods" />
	</aop:config>

</beans>
