SSH整合-关于Spring中applicationContext.xml文件对于事务的一些配置
2008-06-27 18:22
906 查看
<!-- 配置SessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="configLocation"> <value>classpath:hibernate.cfg.xml</value> </property> </bean> <!-- 配置事务 --> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> </bean> <!-- 配置事务特性 --> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="add*" propagation="REQUIRED" /> <tx:method name="del*" propagation="REQUIRED" /> <tx:method name="update*" propagation="REQUIRED" /> <tx:method name="find*" read-only="true" /> <tx:method name="search*" read-only="true" /> </tx:attributes> </tx:advice> <!-- 配置哪些类文件的方法进行事务管理 --> <aop:config> <aop:pointcut id="allManagerMethod" expression="execution (* com.gengyang.oa.managers.*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod" /> </aop:config> <!-- 配置JbpmConfiguration --> <bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean"> <property name="configuration" value="classpath:jbpm.cfg.xml"></property> </bean>
相关文章推荐
- ssh整合!Struts.xml、hibernate与spring整合的applicationContext.xml、web.xml文件的配置!
- Spring整合了CXF的一个applicationContext.xml的配置文件
- spring、mybatis整合核心配置文件applicationContext.xml
- SSH整合applicationContext.xml配置文件(my project)
- SSH整合之applicationContext.xml配置文件
- Spring的applicationContext.xml配置文件的一些问题
- 关于ssh 框架 applicationContext.xml文件中配置hibernate数据库出现的一个小问题
- SSH整合,applicationContext.xml中配置hibernate映射文件问题
- Spring的applicationContext.xml配置文件的一些问题
- ssh整合源码一:配置Spring之applicationContext.xml和web.xml
- Hibernate与Spring整合,配置文件applicationContext.xml
- spring配置文件applicationContext.xml中的事务总结
- 关于spring的配置文件applicationcontext.xml
- spring、hibernate整合核心配置文件applicationContext.xml
- Spring配置文件applicationContext.xml(3)开启事务和注解
- Hibernate与Spring整合,配置文件applicationContext.xml
- Spring 框架的 applicationContext.xml 配置文件
- 请慎用spring-ClassPathXmlApplicationContext手动加载spring配置文件
- SSH读取applicationContext.xml配置文件测试hibernate方法
- Spring ApplicationContext.xml 配置文件常用注解和详解