<!--IMG-->
<!--GMI-->
<!--IMG-->
<!--GMI-->
<!--IMG-->
<!--GMI-->
applicationContext.xml文件内容
<?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:schemaLhttp://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.0.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
<!--
<bean id="dataSuource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306"></property>
<property name="username" value="root"></property>
<property name="password" value="123456"></property>
</bean>
-->
<bean id="dataSuource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"
value="jdbc/MysqlPool">
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSuource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.show_sql">
true
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>org/agilecc/sd/pojos/User.hbm.xml</value>
</list>
</property>
</bean>
<bean id="userDao" class="org.agilecc.sd.dao.impl.UserDaoImpl">
<property name="sessionFactory">
<ref bean="sessionFactory" />
</property>
</bean>
<bean id="userService"
class="org.agilecc.sd.service.impl.UserServiceImpl" scope="prototype" >
<property name="userDao">
<ref bean="userDao" />
</property>
</bean>
<bean id="addUser" class="org.agilecc.sd.action.UserAction" scope="prototype" >
<property name="userService">
<ref bean="userService" />
</property>
</bean>
<bean id="userList" class="org.agilecc.sd.action.UserAction" scope="prototype" >
<property name="userService">
<ref bean="userService" />
</property>
</bean>
<bean id="userListSql" class="org.agilecc.sd.action.UserAction" scope="prototype" >
<property name="userService">
<ref bean="userService" />
</property>
</bean>
<bean id="updateUser" class="org.agilecc.sd.action.UserAction" scope="prototype" >
<property name="userService">
<ref bean="userService" />
</property>
</bean>
<bean id="removerUser" class="org.agilecc.sd.action.UserAction" scope="prototype" >
<property name="userService">
<ref bean="userService" />
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property>
</bean>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="add*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="remover*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* org.agilecc.sd.service.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
</beans>
相关推荐
SpringMVCHibernate项目Spring MVC + Hibernate 初学者教程技术SpringMVC HibernateJSP 页面应用服务器:Glassfish 数据库:MySQL 内容:共4页注册.jsp 创建新用户帐户确认.jsp 如果帐户刚刚创建,则确认新用户登录....
glassfish管理员界面如何配置连接池的介绍
GlassFish 数据源连接池配置 GlassFish 是一个开源的 Java EE 应用服务器,它提供了一个基于 Web 的管理接口,...本文详细介绍了如何在 GlassFish 中配置数据源连接池,希望能够帮助读者更好地理解和使用 GlassFish。
DWR3.0+ hibernate4.1 + spring3.1 基于JPA JTA技术,在glassfish3.1.2和postgresql9上测试通过。参考了网上资料进行整理。
wicket6.0 + hibernate4.1 + spring3.1 基于J2EE的实例程序。采用JTA事务管理。在glassfish3.1.2和postgresql9测试通过。
wicket6.0 + hibernate4.1 + spring3.1 基于JPA的实例程序。采用JTA事务管理。在glassfish3.1.2和postgresql9测试通过。
flex远程对象操作(简单对象到复杂对象) 服务器为glassfish 工作过程录制,语言为成都方言:),听不明白的只有光看了
工作录制,语言为成都方言 主要实际操作Flex远程对象实现
工作录制,语言为成都方言 主要实际操作Flex远程对象实现
eclipse与glassfish3.1.1使用配置-连接池配置-JNDI配置[归纳].pdf
glassfish配置jndi(DB2数据库)的详细步骤,注意在步骤2时需要修改数据源名称
Spring3.2 Hibernate4.2 JPA2全注解实例.采用JTA事务管理,配置ehcache为二级缓存,在glassfish3.2.2和postgresql9测试通过。参考网上的资料整理。
马拉松使用Maven和GlassFish在NetBeans中解释Spring / Struts / Hibernate的存储库。 ##关于。 你好! 该存储库包含一个使用Java完成的基本编程马拉松注册项目,分别使用JavaEE Struts / Spring / Hibernate框架的...
Java EE 7已经发布很久了,新增加了很多新的功能和特性,如新增或更新了不少的JSR标准。其中特别受到关注的是Websockets。它的一个好处之一是减少了不必要的...它主要是用于在客户机和服务器之间建立单一的双向连接。
1)基于J2EE平台,使用Struts+ Spring +Hibernate框架构建系统 2)数据库采用SQL Server 2005 3)应用服务器采用GlassFish。 4、产品运行环境规定: 《学生顶岗实习动态信息管理系统》要求服务端和客户端的运行环境...
1)基于J2EE平台,使用Struts+ Spring +Hibernate框架构建系统 2)数据库采用SQL Server 2005 3)应用服务器采用GlassFish。 4、产品运行环境规定: 《学生顶岗实习动态信息管理系统》要求服务端和客户端的运行环境...
Wicket6.0_Spring3.1_Hibernate4.1_EJB全注解实例。采用JTA事务管理,在glassfish3.1.2和postgresql9测试通过。参考网上的资料整理。
Wicket6.7 Spring3.2 Hibernate4.2 EJB全注解实例.采用JTA事务管理,配置ehcache为二级缓存,在glassfish3.2.2和postgresql9测试通过。参考网上的资料整理。
DWR3.0 Spring3.2 Hibernate4.2 JPA全注解实例。采用JTA事务管理,配置ehcache为二级缓存,在glassfish3.2.2和postgresql9测试通过。参考网上的资料整理。.
日程杰克1.7 工具服务器GlassFish 4.1 SDI Netbeans 8.1 框架JSF 2.0 素面5.2 Hibernate4.3,c0p3 0.9 JPA 数据库MySQL 5.6 继的视频之后的议程应用程序,它让我更喜欢。