<?xml version= "1.0" encoding= "UTF-8"?> <beans "xmlns=" xmlns:
Xsi= "Http://www.w3.org/2001/XMLSchema-instance" xmlns:context= "Http://www.springframework.org/schema/context" xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" xsi:schemalocation= "Http://www.springframework.org/schema /beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework. Org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd HTTP://WWW.S PRINGFRAMEWORK.ORG/SCHEMA/AOP http://www.springframework.org/schema/aop/spring-aop-2.5.xsd "> <bean id=" Sessionfactory "class=" Org.springframework.orm.hibernate3.LocalSessionFactoryBean "> <propert Y name= "configlocation" value= "Classpath:hibernate.cfg.xml"/> <property name= "ConfigurationClass" Org.hibernate.cfg.AnnotationConfiguration "/>
</bean> <!--define the transaction manager (declarative transaction)--> <bean id= "TransactionManager class=" ORG.SPRINGF Ramework.orm.hibernate3.HibernateTransactionManager "> <property name=" sessionfactory "ref=" Sessionfactory " > </bean> <!--Configure DAO--> <bean id= "Userdaotarget class=" Com.bluesky.spring.dao.UserDao Impl "> <property name=" sessionfactory "ref=" sessionfactory "/> </bean> <bean id=" us Erdao "class=" Org.springframework.transaction.interceptor.TransactionProxyFactoryBean "> <!-- Configure the transaction manager--> <property name= "TransactionManager" ref= "TransactionManager"/> <propert Y name= "target" ref= "Userdaotarget"/> <property name= "proxyinterfaces" value= "Com.bluesky.spring.dao.Gen" Eratordao "/> <!--Configure transaction properties--> <property name=" Transactionattributes "> <p
Rops> <prop key= "*" >PROPAGATION_REQUIRED</prop> </props> </property> < /bean> </beans>