中国科学院软件研究所机构知识库
Advanced  
ISCAS OpenIR  > 中科院软件所  > 中科院软件所
题名:
实体Bean容器与容器管理持久化的研究与实现
作者: 胡建华
答辩日期: 2004
专业: 计算机软件与理论
授予单位: 中国科学院软件研究所
授予地点: 中国科学院软件研究所
学位: 博士
关键词: 实体Bean容器 ; CMP持久化 ; OR映射 ; 动态代理 ; 并发控制 ; JZEE应用服务器
摘要: EJB(Enterprise Java Bean)是为开发和部署基于组件的分布式应用而定义的组件体系结构。与其他组件技术相比,EJB组件具有可扩展性、事务性和并发访问安全性,而且EJB组件使用纯Java 编写,具有更好的平台独立性,在分布式系统的开发方面有显著的优势。实体Bean是EJB的一种。EJB规范定义两种实现实体Bean的方法:BeanManagedPersistence(BMP)和ContainerManagedPresistence(CMP)。使用CMP时,容器自动将对象操作转换为数据库操作,是一种典型的对象持久化技术。当前存在多种对象持久化技术,包括对象数据库技术、JDO技术和DAO技术等,但是它们都有自身的缺陷,不能高效的用于分布式应用的开发。相比之下,实体Bean技术应用广泛,经过不断的发展,已经具备了比较完善的功能,并形成了全面细致的规范。实体Bean规范规定了实体Bean的开发方法,实体Bean容器的功能和持久化管理器的功能。但是该规范没有规定后两者的实现方法。目前大多数的JZEE应用服务器都实现了实体Bean容器和持久化管理器,但随着实体Bean应用的推广,都暴露出一些缺陷,例如:没有完全遵守规范;并发访问效率较低;容易发生死锁;配置性较低等。此外,实体Bean规范也暴露出很多不足。本文提出了一种实体Bean容器和CMP持久化管理器的实现方法。为了避免上述缺陷,同时获得较高的性能,我们在设计时除了考虑基本的需求,还重点研究了线程池、并发控制和死锁检测算法。在实现CMP持久化方面,我们使用关系数据库作为存储介质,通过选择最佳的映射策略能够保存实体Bean的对象特性,并通过优化数据库访问操作获得较高的性能。整个实现不仅完全遵守实体Bean2.1规范,还对规范中不方便编程的部分进行了增强,并具有较高的性能和较强的定制功能。该实体Bean容器和持久化管理器已经在网络应用服务器OnceAS中实现,OnceAS遵守J2EEl.3规范。
英文摘要: The Enterprise JavaBeans architecture is a component architecture for the development and deployment of component-based distributed business applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and multi-user secure. Programmed with pure Java, The EJB component is independent of the platform. For this independence, the EJB is more fittable to develop distributed application than other component-based technology. The entity bean is one type of EJB. Because it can persist its state, it is often used to represent the business entity. There are many kinds of technology that can be used to persist object, but none of them except the entity bean can be efficiently used to develop a distributed application. One reason is that they don't have a complete specification. But the entity bean has one. The EJB specification defines how to develop an entity bean and what support is necessary for it to run. However, it is not specified how to provide those supports. There are many application servers that implement the functions defined in the sepecification. However, as the entity bean is more and more widely used, the deficiency and inconvenience is more and more clear. A better implementation is expected. This paper represents an implementation of parts of the specification for the entity bean. In the implementation, we try to avoid the known deficiencies. So we adopt the following mechanisms: an object cache, a configurable synchronize policy and a dead-lock-detection algorithem. Besides, we also try to improve the persistent mechanism by adopting the following: selection of the best OR mapping, optimization of the database-access operation. In one word, the implementation is high performance, EJB2.0 compliant and easy to configure. The implementation is a key component of OnceAS, which is a J2EE1.3 compliant application server developed independently by TCSE, ISCAS.
语种: 中文
内容类型: 学位论文
URI标识: http://ir.iscas.ac.cn/handle/311060/7180
Appears in Collections:中科院软件所

Files in This Item:
File Name/ File Size Content Type Version Access License
LW014087.pdf(2616KB)----限制开放-- 联系获取全文

Recommended Citation:
胡建华. 实体Bean容器与容器管理持久化的研究与实现[D]. 中国科学院软件研究所. 中国科学院软件研究所. 2004-01-01.
Service
Recommend this item
Sava as my favorate item
Show this item's statistics
Export Endnote File
Google Scholar
Similar articles in Google Scholar
[胡建华]'s Articles
CSDL cross search
Similar articles in CSDL Cross Search
[胡建华]‘s Articles
Related Copyright Policies
Null
Social Bookmarking
Add to CiteULike Add to Connotea Add to Del.icio.us Add to Digg Add to Reddit
所有评论 (0)
暂无评论
 
评注功能仅针对注册用户开放,请您登录
您对该条目有什么异议,请填写以下表单,管理员会尽快联系您。
内 容:
Email:  *
单位:
验证码:   刷新
您在IR的使用过程中有什么好的想法或者建议可以反馈给我们。
标 题:
 *
内 容:
Email:  *
验证码:   刷新

Items in IR are protected by copyright, with all rights reserved, unless otherwise indicated.

 

 

Valid XHTML 1.0!
Copyright © 2007-2017  中国科学院软件研究所 - Feedback
Powered by CSpace