利用IOC/AOP实现声明式事务 |
| |
引用本文: | 袁航,万云.利用IOC/AOP实现声明式事务[J].教育技术导刊,2010(5). |
| |
作者姓名: | 袁航 万云 |
| |
作者单位: | 中国人民解放军75660部队一大队;桂林理工大学信息科学与工程学院; |
| |
摘 要: | 依赖注入指根据系统配置文件中定义的组建间的依赖关系,将被调用组建实例化,并注入到调用组建之中。IOC/AOP要解决的是模块之间调用的依赖问题。传统J2EE事物实现使用冗余的JDBC模板代码,而利用IOC/AOP机制可以委托实现事物管理消除冗余的模板代码,方便地在不同事务逻辑之间切换。
|
关 键 词: | J2EE IOC AOP JDBC |
Implementation Declarative Transaction with IOC&AOP |
| |
Abstract: | Dependency injection refers to instantiation the invoked component and inject into the call component with the support of container in which define the inter-dependency relation that configure in system files.The IOC/AOP proposed solutions is to solve the problem of modules dependency issue.However,traditionally,J2EE transaction is implemented by redundant JDBC template code,using the delegation mechaism to IOC/AOP we can implement transaction management and eliminate the redundancy at the same time. |
| |
Keywords: | J2EE IOC AOP JDBC |
本文献已被 CNKI 万方数据 等数据库收录! |
|