Research and Implementation of Distributed Transaction System Based on JMS
- Author
- WangChengLiang
- Advisor
- LiLiXin
- School
- PLA Information Engineering University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 56
- Citations
- 0
- Distributed database
- distributed transaction
- Transaction Processing Midddleware
- Message-oriented middleware
- JMS
- transaction processing system
Abstract
Data redundancy plays an important role in applications of distributed database, with which distributed applications can get higher availability, reliability and querying efficiency. In order to maintain consistency of distributed database, especially the consistency of data which has many replicas, distributed applications need a reliable transaction processing technology to eusure consistency of distributed database during updating data replicas. Traditional distributed transaction processing technologies usually adopt a two-phase commit protocol to guarantee consistency, which depends on reliable communication condition. But these systems have some drawbacks when they are used in the unreliable networks.This thesis has studied theory of transaction processing in distributed database and theory of message queue. And then a distributed transaction processing system based on JMS is put forward and implemented. This system can process data updating transaction in distributed database with efficiency.The main contributions are as follows:Firstly, a distributed transaction processing framework based on JMS is put forward. The distributed transaction processing framework uses JMS message system to transmit transaction messages reliably, and processes data updating transaction in distributed databases asynchronously with unblocked mechanism. The framework has the advantages of tolerating to unreliable network environment. The data updating transaction won’t be lost even failure of network communication happens.Secondly, the critical techniques of the distributed transaction processing framework based on JMS are researched.A one-phase commit protocol is put forward to overcome the shortcomings of two-phase commit protocol, which can processes transaction more efficiently and eliminates transaction blocking. A method of controlling the order of transactions based on logical time is designed, which can guarantee correctness of transaction processing sequence. Based on digital signature technology and digital envelop technology, a more secure scheme to transmit transaction messages is proposed. This scheme can enhance the security of the system evidently.Thirdly, a distributed transaction processing system based on JMS is implemented.This system, called ATPM_JMS, can shield complex process of transaction and network communication for applications of distributed database.At last, an example of using the distributed transaction processing system based on JMS is described.This thesis applies the distributed transaction processing system based on JMS for“Training information management system”of a large-scale training organization. ATPM_JMS can supply reliable transaction service for applications of distributed database and ensure consistency of distributed database.
Table of contents
Abstract 7-8
Abstract 8-10
first chapter 10-15
issues 1.1 Background 10 - the
research significance 1.2 11
1.3 Related Research in the field of 11-12
1.3.1 distributed transaction commit mechanism 11-12
1.3.2 distributed database system transaction processing
1.4 Research content and innovation 12-13
1.5 organizational structure of the paper 13-15
Chapter II technology research 15-26
2.1 Distributed database transaction processing technology of 15-20
2.1.1 Distributed Transaction Overview 15-16
2.1.2 distributed transaction processing model the 16-17 2.1.3 two-phase commit protocol
2.1.4 Distributed Database 17-19 in the data update 19-20
2.2 messaging middleware technology 20-21
2.3 JMS 21-25
2.3.1 JMS applications composed 21-22
2.3.2 JMS managed object 22
2.3.3 JMS transmission mode 22-23
2.3.4 JMS interface 23
2.3.5 JMS message model 23-24
2.3.6 JMS messaging middleware products 24-25
2.4 Chapter Summary 25-26
Chapter JMS-based distributed transaction processing framework for design and key technology research 26-46
3.1 transaction processing framework design goals 26
3.2 The the transaction mode selection 26-28
3.2.1 synchronous transaction processing the 26-27 3.2.2 asynchronous transaction processing
27-28
3.3 transaction processing framework structure design 28-32
3.3.1 frame structure described 28-29
3.3.2 data update transaction definition 29-30 <br / > 3.3.3 transaction process 30-32
3.4 transaction commit protocol design 32-35
3.4.1 commit protocol design thinking 32 <br / > 3.4.2 a phase commit protocol principle 32-33
3.4.3 phase commit protocol state transition diagram 33
3.4.4 phase commit protocol algorithm described 33-35
3.4.5 two-phase commit protocol 35
3.5 transaction execution order control transaction execution order of 35-38
3.5.1 problems 36
3.5.2 transaction execution order based on the logic clock control method 36-38
3.5.3 transaction execution order of instances are found; 38
3.6 fault handling and recovery 38-40
3.6.1 Communication link failure 39
3.6.2 node failure 39-40
3.7 transaction message the secure transmission 40-43
3.7.1 security needs 40
3.7.2 PKI-based secure transmission solutions 40-43
3.8 compare and Analysis 43-45
3.8.1 compared with traditional transaction processing framework the 43-44
3.8.2 Affairs ACID properties guarantee 44-45
3.9 Chapter Summary 45-46
Chapter detailed design and implementation of the key components of a distributed transaction processing system based on JMS nbsp 46-63
4.1 development environment; 46
4.2 JMS messaging middleware select 46
4.3 system module structure 46-48
4.4 status and configuration information table 48-51
4.4.1 configuration information tables the
the 4.4.2 status information sheet 48-49 the 4.5 49-51
transaction message formats 51-53 < br /> 4.5.1 transaction request message the 51-52
4.5.2 affairs reply message 52-53
4.5.3 heartbeat messages 53
4.6 running core program 53-60
4.6.1 function module the 4.6.2 business modules 53-58
58-60
4.7 affairs service interface the 60-61
4.7.1 asynchronous transaction request 60-61
4.7.2 affairs results query 61
4.7.3 interface 61
4.8 hypervisor 61-62
4.9 Chapter Summary 62-63
Chapter JMS-based distributed transaction processing system application examples 63-71
5.1 Project Background 63
5.2 data update needs 63-64
5.3 application development work 64
5.4 system deployed network architecture 64-65
5.5 installation and configuration of middleware 65-67
5.5.1 transactional middleware installation 65-66
5.5.2 Affairs middleware configuration 66-67
5.5.3 JMS message server installation and configuration 67
5.6 system test 67-70
5.6.1 test environment the 5.6.2 test content 67-69
69-70
5.6.3 test results 70
5.7 Chapter Summary 70-71
Chapter Summary and Outlook 71-73
6.1 thesis work summarizes 71-72
6.2 Next Job Outlook to References 72-73
73-75
of resume studying for a master's degree during the completion of the main work 75-76
Acknowledgements 76
Related dissertations
- The Research and Implementation of Message-Oriented Middleware Based on XML
- Enterprise Application Integration Middleware Based on research news
- Based on research and design of distributed database technology CIAgent
- Distributed Medical Image Database System Research and Implementation
- Research and Development of the Expressway Toll Collection Network System and Distributed Database
- Lightweight Design and Integration on Message-Oriented Middleware Based on JMS
- Based on Embedded Database Distributed Applications and Implementation
- An Adaptive Multi-level Caching Strategy for Disributed Database Systems
- Application and Research of the Distributed Network Database in Energy Management System
- The Study on Application of the Distributed Database in Bank Card Acquiring Professional Service System
- Query Optimization Technique for Distributed Database System Based on Semi-Join Algorithm
- Research on Comparison Platform for Social Assistance of Low-incomes Families in Hunan Province
- The Design and Implementation of a Distributed Database Project Management System for Communications Engineering Design
- Research of Distributed Transaction in Decentralized Architecture Systems
- The Research and Design of Distributed Data Cache Mechanism
- The Design and Implementation of Water Supply Remote Monitoring System Based on Web
- Server-Side Design and Realization of Monitoring System
- Research and Design of Dns Monitoring System Based on Passive Package Analysis
- Research on Join Query Optimization Algorithm in Distributed Database Based on Immune Genetic Algorithm
- The Design and Implementation of Distributed Data Management System for Large-Scale Virtual Screening