<?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:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
					    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
					    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
	<bean id="UserServiceWithXML" class="com.sds.emp.user.services.impl.UserServiceImplWithXML">
		<property name="userDAO">
			<bean class="com.sds.emp.user.services.impl.UserDAO">
				<property name="queryService" ref="oracle_queryservice" />
				<property name="propertiesService"
					ref="propertiesService" />
			</bean>
		</property>
	</bean>
	
	<tx:advice id="txAdvice" transaction-manager="oracleTransactionManagerDataSource">
		<tx:attributes>
			<tx:method name="*" no-rollback-for="com.sds.emp.common.EmpException"/>
		</tx:attributes>
	</tx:advice>
	
	<aop:config>
		<aop:pointcut id="userServiceOperations" expression="execution(* com.sds.emp.user.services.impl.UserServiceImplWithXML.*(..))"/>
		<aop:advisor advice-ref="txAdvice" pointcut-ref="userServiceOperations"/>
	</aop:config>
</beans>

