中国科学院软件研究所机构知识库
Advanced  
ISCAS OpenIR  > 中科院软件所  > 中科院软件所
题名:
事务监控器中的资源管理研究
作者: 陈小芳
答辩日期: 2003
专业: 计算机软件与理论
授予单位: 中国科学院软件研究所
授予地点: 中国科学院软件研究所
学位: 博士
关键词: 事务 ; 事务监控器 ; 资源管理器 ; 事务管理器 ; 资源管理
其他题名: Research of Resource Management in Transaction Processing Monitors
摘要: 事务处理技术是保证信息可靠性和一致性的关键技术,事务监控器是提供这种技术的一类中间件产品,它是开发、部署、监控和管理基于三层结构的联机事务处理应用系统的基础平台,在构筑基于事务的网络分步应用中处于核心地位。资源管理器是事务监控器的重要组成部分,它是事务操作的实体。一个分布事务环境通常包括多个资源管理器,事务监控器需要对涉及到的每个资源管理器进行事务管理,控制它们对事务的参与,达到正确完成事务的目的。另外,由于对资源管理器的访问通常比较费时,它们对外提供的接口也不尽相同,所以事务监控器还需要对系统中使用的每个资源管理器进行有效地访问管理,向应用程序提供统一的调用接口,并提高应用程序的效率。这些问题都是事务监控器中的资源管理需要解决的问题,对它们的研究有助于提高事务监控器的性能,增加事务监控器的可扩展性,方便应用程序的开发。在对目前广泛使用的多种事务监控器产品的资源管理和相关规范的研究基础上,我们设计和实现了两种不同的事务系统中的资源管理模块。ISTX1.0是一个基于J2EE规范的事务服务,它本身可以向应用程序提供JTS事务服务,也可以加载到J2EE应用服务器中,向它提供JTA事务接口。ISTX1.0中的资源管理模块对系统中使用的所有数据库进行了统一的连接缓冲和复用管理,有效提高了应用程序和ISTX1.0的性能;另外它对JCA1.0规范进行了支持,任何遵循JCA规范的EIS系统都能方便地加入到ISTX1.0中;最后它和事务管理模块结合在一起,共同实现了资源在事务管理器中的注册和注销功能。整个资源管理模块的代码实现过程中使用了多种设计模式,所以系统的结构非常清晰,管理也很方便。ISTX2.0是一个遵循X/Open DTP分布事务处理模型的事务监控器系统,可以在Windows、Unix和Solaris等多个平台下运行。它在系统内部实现了负载平衡,可用于构建关键任务和大规模、高容量的分布式企业级应用。ISTX2.0中的资源管理和ISTX1.0中的资源管理方法有很大的区别,它使用动态链接库实现了对异种平台下不同资源管理器的访问管理,利用钩子函数巧妙地支持了XA规范中“同一个进程”的事务判定方法,实现了事务在不同进程之间的切换。对于系统中所有的数据库连接,资源管理模块采用“一次连接,多次使用”的方法,从而避免了对连接的缓冲和复用管理。另外对于特定的应用场合,作者还对资源管理的方法提出了一种性能优化方案。最后,论文从应用程序对数据库的访问方式,连接,连接池,对事务的跨线程支持,资源管理模块对数据库的访问方式,适用的环境,和遵循的规范七个方面对ISTX1.0和ISTX2.0的资源管理方法进行了简单比较,对全文进行了总结,并提出了进一步的工作。
英文摘要: Transaction processing technology is a key technology to ensure reliability and consistency of information. The transaction processing monitor is a kind of middleware that specially provides this technology. It is the basic platform to explore, deploy, monitor, and manage three-tier online transaction processing applications, playing a crucial role in constructing transaction-based network distributed applications. Resource Managers are the important components in transaction processing monitors. They are the entities of transaction processing. The environment of distributed transaction processing often includes several resource managers. Transaction processing monitors are required to manage the transactions of these resource managers, controlling their participation in global transactions, and finishing transactions accurately. In addition, it is often time-consuming to access resource managers. And the interfaces they provide are often different. So transaction managers are also required to effectively manage resource accessing, improve the efficiency of applications, and provide uniform interfaces for them. These problems are the contents of resource management in transaction processing monitors. Research of these problems will help to improve the performance and scalability of transaction processing monitors, and bring convenience to application development. Based on the research of resource management in several widely used transaction processing monitors and relative standards, we design and implement the resource management modules at two different transaction systems. ISTX1.0 is a transaction service based on J2EE standard. It can provide JTS services for applications. And it can also be deployed into J2EE application servers, providing JTA interfaces for the latter. The resource management in ISTX1.0 takes a uniform management for all the databases connections, using connection pooling and reusing. This measure effectively improves the performance of applications and ISTX1.0. The resource management also implements part of the JCA1.0 standard. Thus, any EIS system keeping to this standard can be easily added into ISTX1.0. In addition, the resource management module combines with that of transaction processing, fulfilling the functions of resource enlist and delist in transaction managers. Several design patterns are used in the coding process. So the architecture of resource management is very obvious and easy to manage. ISTX2.0 is a transaction processing monitor based on X/Open Distributed Transaction Processing model. It could be working at several different platforms including Windows, Unix, Solaris, etc. ISTX2.0 implements load-balance inside. It can be used to construct key tasks and distributed enterprise applications of large-scale and high capacity. The resource management of ISTX2.0 is far away from that of ISTXl.O. It uses dynamic link libraries to uniformly manage all the resource managers in heterogeneous platforms. And it uses hooks to implement "same of thread", the method to check transaction contents in XA standard. These hooks also help ISTX2.0 support transfer of transactions in different processes. For all the connections of databases in ISTX2.0, resource management takes use of "once-connect, multiple-use", thus avoiding the connection pooling and reusing management. In addition, an idea of resource management under special conditions is put forward to optimize the performance of ISTX2.0. The thesis finally compares the resource management of ISTXl.O and ISTX2.0 in seven aspects, including the way of applications accessing databases, connection, connection pooling, supporting for transactions transfer in different threads, the way of resource management components accessing databases, management of resource managers, suitable environments to be used, and specifications followed. It also summarizes the contents of the paper, and puts forward the following work.
语种: 中文
内容类型: 学位论文
URI标识: http://ir.iscas.ac.cn/handle/311060/6088
Appears in Collections:中科院软件所

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

Recommended Citation:
陈小芳. 事务监控器中的资源管理研究[D]. 中国科学院软件研究所. 中国科学院软件研究所. 2003-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