Transaction recovery method and apparatus

A transaction recovery and transaction technology, which is applied in multi-programming devices, instruments, electronic digital data processing, etc., can solve the problems that the CICSAS process cannot obtain transactions that have not been successfully submitted in time, and the CICSAS process cannot be started in time. Effect

Active Publication Date: 2012-01-11
HUAWEI TECH CO LTD
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, it is necessary to provide a transaction recovery method to solve the problem that the CICS AS process cannot obtain the transaction that has not been successfully submitted in time because the database cannot apply for the database lock in the process of starting the CICS AS process, so that the CICS AS process cannot timely start problem
[0009] At the same time, a transaction recovery device is provided to solve the problem that the CICS AS process cannot obtain transactions that have not been successfully submitted in time because the database cannot apply for a database lock in time during the startup process of the CICS AS process, so that the CICS AS process cannot be started in time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Transaction recovery method and apparatus
  • Transaction recovery method and apparatus
  • Transaction recovery method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] figure 1 is an exemplary flowchart of a transaction recovery method 100 according to an embodiment of the present invention.

[0024] Step 102, intercepting a transaction recovery request xa_recover sent by a CICS AS process to the resource manager;

[0025] Step 104, searching the unfinished business that this CICS AS process is responsible for in the recorded business;

[0026] Step 106, when the unfinished transaction is found, return the unfinished transaction to the CICS AS process, so that the CICS AS process can recover the unfinished transaction.

[0027] In the specific implementation process, the method 100 also includes, when listening to the pre-commit request xa_prepare for any transaction sent by the above-mentioned CICS AS process to the above-mentioned resource manager, recording the above-mentioned transaction, and marking the status of the transaction as unfinished .

[0028] Thereafter, the method 100 further includes, when listening to the success...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a transaction recovery method and apparatus. The transaction recovery method comprises intercepting a transaction recovery request xa-recover sent by a CICS AS processing to a resource manager RM; researching the transaction of which the CICS AS is in responsible in recorded transaction; returning the transaction to the CICS AS to be convenient for the recovery of the transaction by the CICS AS. The invention also provides a transaction recovery method apparatus. When the CICS AS is started to require for the transaction which is failed to submit through the xa-recover interface, the unfinished transaction of which the CICS AS is in responsible can be directly searched and the request of the unfinished transaction to a data base is not needed. In such a way that no data base locks need to be applied, the transaction which is failed to submit can be timely returned to the CICS AS to realize the teme starting of the CICS AS.

Description

technical field [0001] The invention relates to transaction recovery technology, in particular to a transaction recovery method and a transaction recovery device. Background technique [0002] The X / Open organization defines a distributed transaction processing model for Distributed Transaction Processing (DTP), which includes Application (Application, AP), Transaction Manager (Transaction Manager, TM), Resource Manager (Resource Manager, RM) and Communication Resource Manager (Communication Resource Manager, CRM) four parts. Generally speaking, the transaction manager is usually a transaction middleware, the resource manager is usually a database, and the communication resource manager is usually a message middleware. Typically, transaction middleware has both the functions of a transaction manager and a communication resource manager. [0003] In order to realize the interaction between the transaction middleware and the resource manager, X / Open organization defines a tw...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46
CPCG06F11/1474G06F2201/80
Inventor 李玉华
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products