CN109684045A - Processing method, device and the electronic equipment of transaction message - Google Patents
Processing method, device and the electronic equipment of transaction message Download PDFInfo
- Publication number
- CN109684045A CN109684045A CN201710972967.XA CN201710972967A CN109684045A CN 109684045 A CN109684045 A CN 109684045A CN 201710972967 A CN201710972967 A CN 201710972967A CN 109684045 A CN109684045 A CN 109684045A
- Authority
- CN
- China
- Prior art keywords
- message
- branch
- transaction
- rollback
- affairs
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/466—Transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Abstract
The embodiment of the present invention provides processing method, device and the electronic equipment of a kind of transaction message, wherein method includes: to send request for opening global transaction to affairs coordinator, obtains the affairs ID of this global transaction and the ID for the message branch for being included;The preliminary message that this global transaction is related to is sent to message-oriented middleware, and result will be sent from the received message of the message-oriented middleware and report to the affairs coordinator, is associated with message transmission result with the branch ID of the message branch with instruction;Execute each transaction branch that the global transaction includes;Submission or the request of rollback global transaction are sent to the affairs coordinator, with the instruction returned according to the affairs coordinator, each transaction branch and message branch for included to the global transaction carry out submission or rollback.The scheme of the embodiment of the present invention, which can be abandoned additionally to be arranged back in the application, looks into trouble brought by interface, and can guarantee the consistency in affairs and Message Processing.
Description
Technical field
This application involves field of computer technology more particularly to a kind of processing method of transaction message, device and electronics to set
It is standby.
Background technique
Distributed transaction system generally comprises the several roles of client, resource manager, affairs coordinator.Client and money
Source manager is deployed in application side;Affairs coordinator is independently disposed, and is responsible for coordinating a distributed transaction from starting completion
All relevant treatment processes are system core roles.
The prior art realizes transaction message, is normally based on the Two-phase commitment of the similar X/Open XA of message-oriented middleware,
Database local matter and message transmission have been placed in a distributed transaction, has guaranteed or local matter is successful and external
Hair message is successful or both fails.The transaction message function that message-oriented middleware provides, needs user to write back in the application and looks into
Interface, and add some service logics to save the execution state and corresponding cleaning logic of local matter.As shown in Figure 1, being thing
The typical process for message of being engaged in.In Fig. 1, using preliminary message is sent to message-oriented middleware, message-oriented middleware saves preliminary message, but
It is that this message can not consume at present, that is to say, that other application or system can not receive this message;Message is sent successfully
Afterwards, application execution local matter;After local matter is successfully submitted, that preliminary message sent just now is submitted, at this time message
It can consume, its business continues to promote after other recipients receive the message.
If a certain step failure above, using can be with rollback preliminary message, logical comparison be simple, not in this detailed analysis.
It is more troublesome, the delay machine before submitting message or rollback message is applied, after message-oriented middleware receives a preliminary message, super
When before confiscate using send submission or rollback message instruction.At this moment, message-oriented middleware just needs to use using offer
It returns and looks into interface, call this time to look into interface after a time out, be applied local transaction status, submits if affairs run succeeded
Message can be consumed for message, the rollback preliminary message if affairs execute failure.As shown in Fig. 2, being corresponding message flow chart.
Prior art defect is summarized:
1, the prior art realizes that transaction message is more complicated, and user needs to increase service logic in the application, realizes back and looks into
Interface.It returns and looks into the work that interface to be completed and be, it is corresponding using can return to message id when message-oriented middleware inputs a message id
The whether successful status message of database local matter.Message-oriented middleware carries out message submission or rollback on this basis.
2, interface is looked into order to realize such a time, is needed using persistence local matter state and affairs and message
Between corresponding relationship, need to guarantee interface idempotent, allow repeatedly to call, do not influence service logic.In actual operation, persistently
The status information of change certainly cannot accumulate down, need to clear up, and how long clearing up is also a problem, since it is desired that determination disappears
Breath middleware will not centainly return again after this looks into these transaction status.
3, as soon as usually having many places transaction message in application, this needs to realize that many return looks into interface, to application and development, dimension
Shield, upgrading all bring many complexity.
Summary of the invention
The present invention provides a kind of processing method of transaction message, device and electronic equipments, can abandon volume in the application
Peripheral hardware, which is put back into, looks into trouble brought by interface, and can guarantee the consistency in affairs and Message Processing.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of processing method of transaction message, comprising:
The request for opening global transaction is sent to affairs coordinator, obtains the affairs ID and packet of this global transaction
The ID of the message branch contained;
The preliminary message that this global transaction is related to is sent to message-oriented middleware, and will be received from the message-oriented middleware
Message sends result and reports to the affairs coordinator, to indicate to send the message into the branch of result and the message branch
ID association;
Execute each transaction branch that the global transaction includes;
Submission or the request of rollback global transaction are sent to the affairs coordinator, to return according to the affairs coordinator
Instruction, each transaction branch and message branch for included to the global transaction carry out submit or rollback.
Second aspect provides the processing method of another transaction message, comprising:
According to the transmitted request for being used to open this global transaction of application, this described overall situation is returned to the application
The ID of the affairs ID of affairs and the message branch for being included;
Result is sent in response to the message that the application reports and the message is sent into result and the message branch
The associated instruction of branch ID, execute it is operation associated;It is that described apply to message-oriented middleware sends this that the message, which sends result,
It is obtained after the preliminary message that secondary global transaction is related to;
The request for receiving submission or rollback global transaction that application is sent, to issue as subsequent to the global transaction institute
Each transaction branch and message branch for including are submitted accordingly or the foundation of the instruction of rollback.
The third aspect provides the processing method of another transaction message, comprising:
The submission instruction for the message branch that affairs coordinator is sent is received, includes message to be committed in the submission instruction
The message of branch sends result;
It is sent according to the message of message branch to be committed as a result, submitting message transmission result institute right to message-oriented middleware
The preliminary message answered, and successful message feedback will be submitted to the affairs coordinator;
Receive the submission instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is submitted respectively, and successful message feedback will be submitted extremely
The affairs coordinator.
Fourth aspect provides a kind of processing method of transaction message, comprising:
The submission instruction of message branch is sent to application, includes the message of message branch to be committed in the submission instruction
Send result;
In response to the successful message of submission for message branch of application feedback, sent to the application described complete
The submission instruction for the transaction branch that office's affairs include;
In response to the successful message of the submission for transaction branch of application feedback, send to the application for this
Secondary global transaction submits successful message.
5th aspect, provides the processing method of another transaction message, comprising:
The rollback instruction for the message branch that affairs coordinator is sent is received, includes the message to rollback in the rollback instruction
The message of branch sends result;
It is sent according to the message of the message branch to rollback as a result, right to message-oriented middleware rollback message transmission result institute
The preliminary message answered, and by the successful message feedback of rollback to the affairs coordinator;
Receive the rollback instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is subjected to rollback respectively, and extremely by the successful message feedback of rollback
The affairs coordinator.
6th aspect, provides the processing method of another transaction message, comprising:
The rollback instruction of message branch, the message comprising the message branch to rollback in the rollback instruction are sent to application
Send result;
The rollback instruction for the transaction branch that the global transaction includes is sent to the application;
In response to application feedback the global transaction each message branch and transaction branch that are included rollback at
The message of function sends to the application and is directed to this successful message of global transaction rollback.
7th aspect, provides a kind of processing unit of transaction message, comprising:
Global transaction request module obtains this for sending the request for opening global transaction to affairs coordinator
The ID of the affairs ID of global transaction and the message branch for being included;
Message branch preparation block, for sending the preliminary message that this global transaction is related to message-oriented middleware, and will
Result is sent from the received message of the message-oriented middleware and reports to the affairs coordinator, and the message is sent with instruction and is tied
Fruit is associated with the branch ID of the message branch;
Transaction branch execution module, each transaction branch for including for executing the global transaction;
Global transaction reporting module, for sending submission or the request of rollback global transaction to the affairs coordinator, with
According to the instruction that the affairs coordinator returns, each transaction branch and message branch for included to the global transaction are mentioned
Friendship or rollback.
Eighth aspect provides the processing unit of another transaction message, comprising:
Global transaction accepts module, for the request that is used to open this global transaction transmitted according to application, to institute
State the ID using the affairs ID and the message branch for being included for returning to this global transaction;
Message branch relating module, message for reporting in response to the application send result and by the message
The associated instruction of branch ID of result and the message branch is sent, is executed operation associated;It is described that the message, which sends result,
Using being obtained after sending the preliminary message that this global transaction is related to message-oriented middleware;
Global transaction summarizing module, for receiving the request using the submission or rollback global transaction that send, using as rear
It is continuous to issue each transaction branch for being included to the global transaction and message branch is submitted accordingly or the instruction of rollback
Foundation.
9th aspect, provides the processing unit of another transaction message, comprising:
Message submits receiving module, the submission instruction of the message branch for receiving affairs coordinator transmission, the submission
Message in instruction comprising message branch to be committed sends result;
Message submits processing module, for being sent according to the message of message branch to be committed as a result, to message-oriented middleware
It submits the message to send preliminary message corresponding to result, and successful message feedback will be submitted to the affairs coordinator;
Affairs submit receiving module, the submission instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction commitment processing module, for each transaction branch for including in the global transaction to be submitted respectively, and
Successful message feedback will be submitted to the affairs coordinator.
Tenth aspect, provides the processing unit of another transaction message, comprising:
Message submits indicating module, for sending the submission instruction of message branch to application, includes in the submission instruction
The message of message branch to be committed sends result;
Affairs submit indicating module, for successfully disappearing in response to the submission for message branch that the application is fed back
Breath sends the submission instruction for the transaction branch that the global transaction includes to the application;
Submission is successfully processed module, and the submission for transaction branch for feeding back in response to the application successfully disappears
Breath sends to the application and submits successful message for this global transaction.
On the one hand tenth, provides the processing unit of another transaction message, comprising:
Message rollback receiving module, the rollback instruction of the message branch for receiving affairs coordinator transmission, the rollback
Message comprising the message branch to rollback in instruction sends result;
Message rollback processing module, for being sent according to the message of the message branch to rollback as a result, to message-oriented middleware
The rollback message sends preliminary message corresponding to result, and by the successful message feedback of rollback to the affairs coordinator;
Transaction rollback receiving module, the rollback instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction rollback processing module, for each transaction branch for including in the global transaction to be carried out rollback respectively, and
By the successful message feedback of rollback to the affairs coordinator.
12nd aspect, provides the processing unit of another transaction message, comprising:
Message rollback indicating module, the rollback for sending message branch to application indicate, include in the rollback instruction
The message of message branch to rollback sends result;
Transaction rollback indicating module, the rollback for sending the transaction branch that the global transaction includes to the application refer to
Show;
Rollback is successfully processed module, each message that the global transaction for feeding back in response to the application is included point
The successful message of rollback of branch and transaction branch sends to the application and is directed to this successful message of global transaction rollback.
13rd aspect, provides a kind of electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The request for opening global transaction is sent to affairs coordinator, obtains the affairs ID and packet of this global transaction
The ID of the message branch contained;
The preliminary message that this global transaction is related to is sent to message-oriented middleware, and will be received from the message-oriented middleware
Message sends result and reports to the affairs coordinator, to indicate to send the message into the branch of result and the message branch
ID association;
Execute each transaction branch that the global transaction includes;
Submission or the request of rollback global transaction are sent to the affairs coordinator, to return according to the affairs coordinator
Instruction, each transaction branch and message branch for included to the global transaction carry out submit or rollback.
Fourteenth aspect provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
According to the transmitted request for being used to open this global transaction of application, this described overall situation is returned to the application
The ID of the affairs ID of affairs and the message branch for being included;
Result is sent in response to the message that the application reports and the message is sent into result and the message branch
The associated instruction of branch ID, execute it is operation associated;It is that described apply to message-oriented middleware sends this that the message, which sends result,
It is obtained after the preliminary message that secondary global transaction is related to;
The request for receiving submission or rollback global transaction that application is sent, to issue as subsequent to the global transaction institute
Each transaction branch and message branch for including are submitted accordingly or the foundation of the instruction of rollback.
15th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The submission instruction for the message branch that affairs coordinator is sent is received, includes message to be committed in the submission instruction
The message of branch sends result;
It is sent according to the message of message branch to be committed as a result, submitting message transmission result institute right to message-oriented middleware
The preliminary message answered, and successful message feedback will be submitted to the affairs coordinator;
Receive the submission instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is submitted respectively, and successful message feedback will be submitted extremely
The affairs coordinator.
16th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The submission instruction of message branch is sent to application, includes the message of message branch to be committed in the submission instruction
Send result;
In response to the successful message of submission for message branch of application feedback, sent to the application described complete
The submission instruction for the transaction branch that office's affairs include;
In response to the successful message of the submission for transaction branch of application feedback, send to the application for this
Secondary global transaction submits successful message.
17th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The rollback instruction for the message branch that affairs coordinator is sent is received, includes the message to rollback in the rollback instruction
The message of branch sends result;
It is sent according to the message of the message branch to rollback as a result, right to message-oriented middleware rollback message transmission result institute
The preliminary message answered, and by the successful message feedback of rollback to the affairs coordinator;
Receive the rollback instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is subjected to rollback respectively, and extremely by the successful message feedback of rollback
The affairs coordinator.
18th aspect, provides another electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The rollback instruction of message branch, the message comprising the message branch to rollback in the rollback instruction are sent to application
Send result;
The rollback instruction for the transaction branch that the global transaction includes is sent to the application;
In response to application feedback the global transaction each message branch and transaction branch that are included rollback at
The message of function sends to the application and is directed to this successful message of global transaction rollback.
Processing method, device and the electronic equipment of transaction message provided by the invention, in existing distributed transaction management system
In system, transaction message is also asked for into a kind of resource of management as application, and is provided for this resource and a kind of meets 2PC mould
The transaction management scheme of formula, i.e., in a global transaction, using transaction message involved in the global transaction as global transaction
The message branch of itself, and a complete distributed transaction is constituted together with original transaction branch.It will be using into message
Between part send preliminary message behavior as the stage in 2PC mode message branch content;When each in global transaction
After transaction branch and message branch are performed both by successfully, using submission global transaction can be requested to affairs coordinator, then according to thing
Transaction branch and message branch are submitted in the submission instruction that business coordinator returns, and wherein the submission of message branch refers to, using submission
The preliminary message for issuing message-oriented middleware before enables the message to be consumed;When each transaction branch and message in global transaction
Exist in branch and be not carried out successful branch, using rollback global transaction can be requested to affairs coordinator, is then assisted according to affairs
The rollback instruction rollback transaction branch for adjusting device to return and message branch.Wherein the rollback of message branch refers to, before rollback
The preliminary message for issuing message-oriented middleware, make the message in the message between be dropped in part.Certainly, when affairs coordinator is specified
It is not received in duration using the submission sent or when rollback global transaction, directly determines that global transaction executes failure, and to answering
With the instruction for returning to rollback global transaction.This programme, which can be abandoned, looks into fiber crops brought by interface because being additionally arranged back in the application
It is tired, and can guarantee the consistency in affairs and Message Processing.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can
It is clearer and more comprehensible, below the special specific embodiment for lifting the application.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the processing logical schematic one of transaction message in the prior art;
Fig. 2 is the processing logical schematic two of transaction message in the prior art;
Fig. 3 is the processing logical schematic one of the transaction message of the embodiment of the present invention;
Fig. 4 is the processing logical schematic two of the transaction message of the embodiment of the present invention;
Fig. 5 is the processing method flow chart one of the transaction message of the embodiment of the present invention;
Fig. 6 is the processing method flowchart 2 of the transaction message of the embodiment of the present invention;
Fig. 7 is the processing method flow chart 3 of the transaction message of the embodiment of the present invention;
Fig. 8 is the processing method flow chart four of the transaction message of the embodiment of the present invention;
Fig. 9 is the processing method flow chart five of the transaction message of the embodiment of the present invention;
Figure 10 is the processing method flow chart six of the transaction message of the embodiment of the present invention;
Figure 11 a is the processing unit structure chart one of the transaction message of the embodiment of the present invention;
Figure 11 b is the structure chart of the global transaction request module of the embodiment of the present invention;
Figure 12 a is the processing unit structure chart two of the transaction message of the embodiment of the present invention;
Figure 12 b is that the global transaction of the embodiment of the present invention accepts the structure chart of module;
Figure 13 is the processing unit structure chart three of the transaction message of the embodiment of the present invention;
Figure 14 is the processing unit structure chart four of the transaction message of the embodiment of the present invention;
Figure 15 is the processing unit structure chart five of the transaction message of the embodiment of the present invention;
Figure 16 is the processing unit structure chart six of the transaction message of the embodiment of the present invention;
Figure 17 is the structural schematic diagram one of the electronic equipment of the embodiment of the present invention;
Figure 18 is the structural schematic diagram two of the electronic equipment of the embodiment of the present invention;
Figure 19 is the structural schematic diagram three of the electronic equipment of the embodiment of the present invention;
Figure 20 is the structural schematic diagram four of the electronic equipment of the embodiment of the present invention;
Figure 21 is the structural schematic diagram five of the electronic equipment of the embodiment of the present invention;
Figure 22 is the structural schematic diagram six of the electronic equipment of the embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
This programme improves in the prior art, because processing distributed transaction and transmission transaction message are two mutually independent
Steps flow chart looks into interface to need additionally to be arranged back in the application, just can guarantee the behaviour for executing affairs and sending transaction message
Make consistent defect, core concept is, on the basis of continuing to use system architecture in the prior art, to respectively holding in system
The operation behavior of row main body is modified, using transaction message as a similar transaction branch in global transaction associated with it
It handles, it is made to meet the tupe of the 2PC of distributed transaction, to protect introduce biggish development cost on the basis of
Demonstrate,prove the consistency of issued transaction and Message Processing.
As shown in figure 3, being the processing logical schematic one of transaction message provided in an embodiment of the present invention, the processing logic pair
Should in transaction message a complete 2PC stage successful submission process.
Step 1, unlatching global transaction is requested using to affairs coordinator;
Step 2, affairs coordinator, which is distributed to, identifies XID using a global transaction;It include: affairs in the structure of the XID
Coordinator IP, affairs coordinator port and the unique ID of affairs;
Step 3, using according to XID, the transaction context of current global transaction is constructed, handles this affairs including being responsible for
Affairs coordinator IP, affairs coordinator port and the unique ID of affairs;
Step 4, using according to transaction context information, the request of one transaction branch of registration is initiated to affairs coordinator.
Step 5, affairs coordinator is distributed to using a branch ID, becomes first branch of global transaction, the branch
ID is for association affairs message;
Step 6, using transmission preliminary message to message-oriented middleware;
Step 7, message-oriented middleware returns to one " message transmission result ";
Step 8, be converted into json string using by " message transmission result ", and be reported to affairs coordinator, with indicate by
Json string is associated with branch ID;
Step 9, affairs coordinator returns to one to application and reports successful message;
Step 10, application execution database local matter.It, all can be by resource pipe for the database manipulation of transaction context
Reason device is handled, and is generated the before and after image of database manipulation and be saved in and be locally stored in table, using according in affairs
Information hereafter is interacted with affairs coordinator, and database local matter becomes second branch of global transaction.
Step 11, using global transaction is submitted, a stage of issued transaction is completed.
Step 12, affairs coordinator initiates two-stage submission.Firstly, affairs coordinator initiates the two-stage to above-mentioned branch one
It submits, the corresponding json of branch one is gone here and there as user data and is transmitted to resource manager;
Step 13, using going here and there to obtain message id according to json and submit message to message-oriented middleware (application process is at this
Not only client is served as in example, but also serves as resource manager);
Step 14, using the successful information of submission message branch for being connected to message-oriented middleware return;
Step 15, the successful message of message submission is returned using to affairs coordinator;
Step 16, the two-stage that affairs coordinator then handles branch two submits, and sends to application and submits transaction branch
Instruction;
Step 17, after using submission instruction is received, the corresponding ghost record of the branch in storage table is cleared up;
Step 18, the successful message of transaction branch submission is returned using to affairs coordinator;
Step 19, affairs coordinator judges that all branches have completed, and returns to " overall situation is submitted successfully " to application.
As shown in figure 4, being the processing logical schematic two of transaction message provided in an embodiment of the present invention, the processing logic pair
Should be in transaction message a complete 2PC stage, because of global transaction time-out, and the process of success rollback.
In Fig. 4, step 1~step 10 is identical as the stage content that global transaction in Fig. 3 is submitted, and only the two-stage is handled
Process is different.Connecting explanation will be carried out since step 11 below.
Step 11, affairs coordinator judges global transaction time-out (there is no submit global transaction by the prescribed time-limit for application),
Initiate global rollback.
Step 12, firstly, affairs coordinator is initiated two-stage rollback to branch two and (mentioned to application hair transaction rollback instruction
It hands over and is submitted according to branch's positive sequence, rollback is according to branch's inverted order rollback);
Step 13, after using rollback instruction is received, according to the corresponding before and after image of each transaction branch stored in storage table
Information completes rollback;
Step 14, the successful message of transaction branch rollback is returned using to affairs coordinator;
Step 15, affairs coordinator then to application hair message rollback instruction, to branch one initiate two-stage rollback, divide
The corresponding json string of branch one is transmitted to resource manager as user data;
Step 16, it goes here and there to obtain message id and send message rollback to message-oriented middleware to indicate using according to json;
Step 17, message-oriented middleware carries out rollback to preliminary message, and sends the successful information of rollback message to application;
Step 18, rollback success message is handled using the two-stage for sending branch one to affairs coordinator;
Step 19, affairs coordinator judges that the rollback of all branches is completed, and clears up global transaction information.
In addition, being grasped when application execution completes the operation of local matter branch and message branch if there is a branch
Work fails, then application can submit the request of rollback global transaction, and the rollback returned according to affairs coordinator to affairs coordinator
Instruction carries out rollback to transaction branch and message branch,
The technical solution of the application is further illustrated below by multiple embodiments.
Embodiment one
Based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation, as shown in figure 5, it is this
The processing method flow chart one of transaction message shown in inventive embodiments, the main execution of this method is to answer shown in Fig. 3 or Fig. 4
With having related generally to the process flow in a stage in 2PC stage of the transaction message in distributed transaction operation mode.Such as figure
Shown in 5, the processing method of the transaction message includes the following steps:
S510 sends the request for opening global transaction to affairs coordinator, obtains the affairs ID of this global transaction
With the ID for the message branch for being included.
Firstly, using the request that can be sent to affairs coordinator for opening this global transaction, and from affairs coordinator
Obtain the corresponding affairs ID of this global transaction.
Specifically, client is intended to initiate a distributed transaction, can first state to open distributed transaction to affairs coordinator,
Then the affairs ID of a global transaction is obtained, from affairs coordinator with distributed to this in the operation of entire distributed transaction
Affairs are identified.The resource manager for each resource database that client is related to this global transaction initiates corresponding thing
Business is requested, and the affairs ID of global transaction belonging to each affairs can be carried in each transactions requests, so that each resource manager is according to thing
Business request executes corresponding transaction operation.
Global transaction in the present embodiment further includes the operation for transaction message, which is this distributed thing
Business operates related transaction message.
Then, using the request of registration message branch can be sent to affairs coordinator according to affairs ID, and from transaction coordination
Device obtains the branch ID for the message branch that this global transaction is included;
Specifically, using the context that can construct this global transaction according to affairs ID, to limit this global transaction
Boundary.
For branch of the transaction message as global transaction for allowing distributed transaction to be related to, in the present embodiment, need to apply
Additionally the operation of transaction message is registered in global transaction, so that affairs coordinator be allowed to carry out pipe in global transaction to it
Reason.
Specifically, application can be each transaction message that this distributed transaction is related to, and send note respectively to affairs coordinator
The request of volume message branch to manage the message branch of transaction message for it in the registration of affairs coordinator side, and is assisted from affairs
Device is adjusted to obtain the branch ID for each message branch that this global transaction is included, using the mark as each transaction message.
S520 sends the preliminary message that this global transaction is related to message-oriented middleware, and will receive from message-oriented middleware
Message send result report to affairs coordinator, with instruction by message transmission result be associated with the branch ID of message branch;
After the branch ID for getting the message branch that global transaction is included, using needing branch ID and specific
Transaction message is associated.Specifically, using that first can send preliminary message to message-oriented middleware, which temporarily cannot be by
Consumption, i.e., other application or system cannot get the preliminary message.After message-oriented middleware receives the preliminary message, it can return
Mark to application one " message transmission result " to be successfully transmitted as this preliminary message.Using should " message send knot
Fruit " is reported to affairs coordinator as the content identification of a message branch, and indicates that affairs coordinator should " message sends knot
Fruit " and the branch ID of the message branch registered before are associated, and transaction message is really registered to affairs association to realize
In the global transaction for adjusting the maintenance management of device institute.
Further, the processing that result reports to affairs coordinator will sent from the received message of message-oriented middleware by applying
In the process, the specifying information for sending result from the received message of message-oriented middleware can be converted to json (JavaScript
Object Notation, a kind of data interchange format of lightweight) character string, and affairs coordinator is reported to, to reduce friendship
Resource consumption of the mutual information to network.
S530 executes each transaction branch that global transaction includes;
The step of this step is with execution transaction branch operation in the prior art is essentially identical, i.e. the resource manager of application side
After the service request for receiving client transmission, above-mentioned affairs ID is extracted from service request, and be sent to transaction coordination
Device states that this affairs is a transaction branch in above-mentioned global transaction to register oneself into affairs coordinator.Affairs association
After adjusting device to receive affairs ID, a transaction branch ID is distributed to the transaction branch, it is above-mentioned belonging to the transaction branch to identify
Global transaction, and transaction branch ID is returned into resource manager.After resource manager is connected to transaction branch ID, as
The mark of Current transaction branch is registered locally.
Resource manager executes the local corresponding database manipulation of each transaction branch in the context of global transaction.Together
When, for each database manipulation, resource manager all can database of record operation before and after image, and save to being locally stored
In table.
S540 sends submission or the request of rollback global transaction to affairs coordinator, with what is returned according to affairs coordinator
Instruction, each transaction branch and message branch for included to global transaction carry out submission or rollback;
Wherein, message branch submit or the operation of rollback is to message-oriented middleware submission or rollback preliminary message.
All message branches for being included when global transaction and transaction branch are all after application side runs succeeded, using meeting
The request for submitting this global transaction is sent to affairs coordinator;All message branches for being included when global transaction and affairs point
There are at least one branches to execute failure in branch, using the request that can send this global transaction of rollback to affairs coordinator.Extremely
This, the stage for being related to the 2PC mode of the distributed transaction operation of message branch participation executes completion.Using will be assisted according to affairs
The instruction of the submission or rollback of adjusting device to return, during the two-stage execution for entering 2PC mode.
Message branch submit or the operation of rollback is what needs to be explained here is that so-called, using can be to message
Middleware is submitted or rollback preliminary message.Wherein, submit preliminary message refer to allow preliminary message become can consumption status, rollback is pre-
Standby message, which refers to, allows message-oriented middleware locally removing the preliminary message.
The processing method of the transaction message of the embodiment of the present invention, using application as executing subject, using transaction message as complete
One message branch of office's affairs, is registered to affairs coordinator;And by message branch and execute transmission preliminary message operation
Message send result be associated, transaction message to be really registered to the global transaction of affairs coordinator institute maintenance management
In;After executing each transaction branch and message branch that completion global transaction is included, according to the knot of the success or failure of execution
Fruit sends the submission or rollback request of global transaction to affairs coordinator, with the instruction returned according to affairs coordinator, to the overall situation
Each transaction branch and message branch that office includes carry out submission or rollback.This programme realizes transaction message in distributed thing
The process flow in one stage in the 2PC stage being engaged in operation mode.
Embodiment two
Based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation, as shown in fig. 6, it is this
The processing method flowchart 2 of transaction message shown in inventive embodiments, the execution of this method are main for thing shown in Fig. 3 or Fig. 4
Business coordinator, has related generally to the processing stream in a stage in 2PC stage of the transaction message in distributed transaction operation mode
Journey.As shown in fig. 6, the processing method of the transaction message includes the following steps:
S610 returns to this global thing to application according to the transmitted request for being used to open this global transaction of application
The ID of the affairs ID of business and the message branch for being included;
Firstly, affairs coordinator can be according to using transmitted, for opening the request of this global transaction, Xiang Yingyong is returned
Return the affairs ID of this global transaction;
Specifically, client is intended to initiate a distributed transaction, can first state to open distributed transaction to affairs coordinator,
Affairs coordinator is received using after the request for opening this global transaction sent, returns to this global transaction to it
Affairs ID, to be identified in the entire distributed transaction operation of maintenance management to this distributed transaction.Meanwhile client exists
After getting the affairs ID of the global transaction, the resource manager for each resource database that Xiang Benci global transaction is related to is initiated
Corresponding transactions requests can carry the affairs ID of global transaction belonging to each affairs in each transactions requests, so that each resource management
Device executes corresponding transaction operation according to transactions requests.
Global transaction in the present embodiment further includes the operation for transaction message, which is this distributed thing
Business operates related transaction message.
Then, affairs coordinator in response to application according to the request of the affairs ID registration message branch sent, and to application
Return to the branch ID for the message branch that this global transaction is included;
Using the context for constructing this global transaction according to affairs ID, to limit the boundary of this global transaction.
Meanwhile branch of the transaction message as global transaction in order to allow distributed transaction to be related to, in the present embodiment, application
Additionally the operation of transaction message can be registered in global transaction, so that affairs coordinator be allowed to carry out pipe in global transaction to it
Reason.
Specifically, application can be each transaction message that this distributed transaction is related to, and send note respectively to affairs coordinator
The request of volume message branch, with the message branch in the registration of affairs coordinator side for affairs coordinator management transaction message.Thing
After business coordinator receives this for the request of registration message branch, each message branch that Xiang Benci global transaction is included is distributed
Corresponding branch ID, and it is sent to application, using the mark as each transaction message.
S620 sends result in response to the message that application reports and message is sent to the branch of result and message branch
The associated instruction of ID executes operation associated;Message transmission result sends this global transaction to message-oriented middleware for application and relates to
And preliminary message after obtain;
It applies after the branch ID for getting the message branch that global transaction is included, by branch ID and specific affairs
Message is associated.
Specifically, send preliminary message to message-oriented middleware using elder generation, which cannot temporarily be consumed, i.e., other
Using or system cannot get the preliminary message.After message-oriented middleware receives the preliminary message, returns to and " disappear using one
Mark of the breath transmission result " to be successfully transmitted as this preliminary message.Using should " message transmission result " disappear as one
Breath branch content identification be reported to affairs coordinator, and indicate affairs coordinator should " message transmission result " with register before
The branch ID of message branch be associated.After affairs coordinator receives the instruction, execution is corresponding operation associated, thus will
Transaction message is registered in the global transaction of affairs coordinator institute maintenance management.
Further, the processing that result reports to affairs coordinator will sent from the received message of message-oriented middleware by applying
In the process, the specifying information for sending result from the received message of message-oriented middleware can be converted to json character string, and reported to
Affairs coordinator, to reduce interactive information to the resource consumption of network.
S630 receives the request of submission or rollback global transaction that application is sent, to issue as subsequent to global transaction
Each transaction branch and message branch for being included are submitted accordingly or the foundation of the instruction of rollback;
All message branches for being included when global transaction and transaction branch are all after application side runs succeeded, affairs association
Adjust device that can receive using the request for submitting this global transaction sent;When all message branches that global transaction is included and
There are at least one branches to execute failure in transaction branch, and affairs coordinator can receive this global thing using the rollback sent
The request of business.So far, the stage for being related to the 2PC mode of the distributed transaction operation of message branch participation executes completion.Affairs
Coordinator can be according to the particular content of request, and issue submission or rollback is indicated to application, to enter the two-stage of 2PC mode
During execution.
Message branch submit or the operation of rollback is what needs to be explained here is that so-called, using can be to message
Middleware is submitted or rollback preliminary message.Wherein, submit preliminary message refer to allow preliminary message become can consumption status, rollback is pre-
Standby message, which refers to, allows message-oriented middleware locally removing the preliminary message.
The processing method of the transaction message of the embodiment of the present invention, using affairs coordinator as executing subject, by transaction message
As a message branch of global transaction, registered locally;And by message branch and execute transmission preliminary message operation
Message send result be associated, really transaction message to be registered in global transaction;Global thing is completed in application execution
It is engaged in after each transaction branch for being included and message branch, receives application and sent complete according to the result of the success or failure of execution
The submission or rollback request of office's affairs, and issue and mention in this, as each transaction branch and message branch for being included to global transaction
The foundation of friendship or rollback instruction.This programme realizes the single order in 2PC stage of the transaction message in distributed transaction operation mode
The process flow of section.
Embodiment three
Based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation, as shown in fig. 7, it is this
The processing method flow chart 3 of transaction message shown in inventive embodiments, the main execution of this method is to answer shown in Fig. 3 or Fig. 4
With having related generally to the process flow of the two-stage in 2PC stage of the transaction message in distributed transaction operation mode.Such as figure
Shown in 7, the processing method of the transaction message includes the following steps:
S710 receives the submission instruction for the message branch that affairs coordinator is sent, submits in instruction and disappear comprising to be committed
The message for ceasing branch sends result;
Wherein, which is designated as affairs coordinator after receiving the requested submission of the global transaction where message branch
It issues;Message send result be application send the preliminary message that this global transaction is related to message-oriented middleware after obtain, and
It is sent to affairs coordinator.
Wherein, the implementation procedure about a stage of message branch in a global transaction can be found in embodiment one or implement
Content shown in example two.When affairs coordinator a stage receive using send submission global transaction request after, can first refer to
Show using being submitted to the message branch in global transaction, comprising message branch pair to be committed in the submission instruction issued
The message answered sends result.The message is sent the result is that apply in a stage implementation procedure, sends this to message-oriented middleware
It is obtained after the preliminary message that global transaction is related to, and is sent to affairs coordinator.The message is sent result by affairs coordinator
Be previously assigned to the message branch of global transaction branch ID be associated after be stored in local.
Further, the specifying information for sending result from the received message of message-oriented middleware can be converted in a stage by applying
For json character string, and affairs coordinator is reported to, to reduce interactive information to the resource consumption of network.Correspondingly, it applies
After extracting the json character string in the submission instruction about message branch, it is also necessary to send out the character string and original message
It send result to carry out after corresponding to, specified preliminary message content could be locked.
S720 is sent according to the message of message branch to be committed as a result, submitting the message to send knot to message-oriented middleware
Preliminary message corresponding to fruit, and successful message feedback will be submitted to affairs coordinator;
It applies after receiving the submission instruction of the message branch of affairs coordinator transmission, extracts and wrapped in the instruction information
The message of the message branch contained is sent as a result, and being disappeared according to result in the content for locally searching corresponding preliminary message, such as preparation
The message id of breath.Then the message is submitted to send preliminary message corresponding to result to message-oriented middleware using message id, so that
Obtaining the preliminary message can consume.After message is submitted successfully, successful message feedback will be submitted to affairs coordinator, to notify thing
Business coordinator can carry out subsequent operation.
S730 receives the submission instruction for the transaction branch that affairs coordinator is sent;
Wherein, it submits and is designated as affairs coordinator and is sent out after receiving that the global transaction where transaction branch is requested and submitting
Out.
Affairs coordinator continues after receiving message branch and submitting successful message to the transaction branch in global transaction
It is submitted, i.e., sends the submission instruction of transaction branch to application.
Each transaction branch for including in global transaction is submitted respectively, and will submit successful message feedback by S740
To affairs coordinator;
After the submission instruction for the transaction branch for receiving affairs coordinator sending, local transaction branch is successively mentioned
Hand over, i.e., will before remove for each transaction operation operation mirror image generated from being locally stored in table.After the completion of to be committed, application
The successful message of submission of transaction branch is sent, to affairs coordinator to notify affairs coordinator that can carry out subsequent operation.
It, can related setting and information by this global transaction being locally stored after affairs coordinator receives the message
It removes, then notice is submitted successfully using this global transaction, and application can continue to execute other transaction operations.
The processing method of the transaction message of the embodiment of the present invention is receiving transaction coordination using application as executing subject
After the instruction submitted to message branch issued, the preliminary message sent before is submitted to message-oriented middleware;Then, then
According to the submission instruction for the transaction branch that affairs coordinator issues, local transaction branch is successively submitted.This programme is real
The process flow of the two-stage (submission) in 2PC stage of the transaction message in distributed transaction operation mode is showed.
Example IV
Based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation, as shown in figure 8, it is this
The processing method flow chart four of transaction message shown in inventive embodiments, the execution of this method are main for thing shown in Fig. 3 or Fig. 4
Business coordinator, has related generally to the processing stream of the two-stage in 2PC stage of the transaction message in distributed transaction operation mode
Journey.As shown in figure 8, the processing method of the transaction message includes the following steps:
S810 sends the submission instruction of message branch to application, submits disappearing comprising message branch to be committed in instruction
Breath sends result;
Wherein, it submits and is designated as affairs coordinator and is sent out after receiving that the global transaction where message branch is requested and submitting
Out;It is to obtain after application sends the preliminary message that this global transaction is related to message-oriented middleware that message, which sends result, concurrently
It send to affairs coordinator.
Wherein, the implementation procedure about a stage of message branch in a global transaction can be found in embodiment one or implement
Content shown in example two.When affairs coordinator a stage receive using send submission global transaction request after, can first refer to
Show using being submitted to the message branch in global transaction, comprising message branch pair to be committed in the submission instruction issued
The message answered sends result.The message is sent the result is that apply in a stage implementation procedure, sends this to message-oriented middleware
It is obtained after the preliminary message that global transaction is related to, and is sent to affairs coordinator.The message is sent result by affairs coordinator
Be previously assigned to the message branch of global transaction branch ID be associated after be stored in local.
S820 sends global transaction to application in response to the successful message of submission for message branch of application feedback
The submission for the transaction branch for including indicates;
It applies after receiving the submission instruction of the message branch of affairs coordinator transmission, extracts and wrapped in the instruction information
The message of the message branch contained is sent as a result, and being disappeared according to result in the content for locally searching corresponding preliminary message, such as preparation
The message id of breath.Then the message is submitted to send preliminary message corresponding to result to message-oriented middleware using message id, so that
Obtaining the preliminary message can consume.After message is submitted successfully, successful message feedback will be submitted to affairs coordinator, transaction coordination
After device is connected to the notice, continue the submission instruction that the transaction branch that global transaction includes is sent to application, with instruction application to this
The transaction branch on ground carries out submission operation.
S830 sends to application in response to the successful message of the submission for transaction branch of application feedback and is directed to this
Global transaction submits successful message;
After the submission instruction for the transaction branch for receiving affairs coordinator sending, local transaction branch is successively mentioned
Hand over, i.e., will before remove for each transaction operation operation mirror image generated from being locally stored in table.After the completion of to be committed, application
The successful message of submission of transaction branch is sent, to affairs coordinator to notify affairs coordinator that can carry out subsequent operation.
It, can related setting and information by this global transaction being locally stored after affairs coordinator receives the message
It removes, then notice is submitted successfully using this global transaction, and application can continue to execute other transaction operations.
The processing method of the transaction message of the embodiment of the present invention is connect using affairs coordinator as executing subject in a stage
It is waiting first to the instruction submitted using sending to message branch after receiving the submission request for applying the global transaction sent
After receiving the information using successful submissions of feedback, then indicate to guarantee transaction message to the submission that application issues transaction branch
With the consistency of local data base operation.This programme realizes 2PC stage of the transaction message in distributed transaction operation mode
Two-stage (submission) process flow.
Embodiment five
Based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation, as shown in figure 9, it is this
The processing method flow chart five of transaction message shown in inventive embodiments, the main execution of this method is to answer shown in Fig. 3 or Fig. 4
With having related generally to the process flow of the two-stage in 2PC stage of the transaction message in distributed transaction operation mode.Such as figure
Shown in 9, the processing method of the transaction message includes the following steps:
S910 receives the rollback instruction for the message branch that affairs coordinator is sent, includes disappearing to rollback in rollback instruction
The message for ceasing branch sends result;
Wherein, rollback be designated as affairs coordinator receive the global transaction where message branch be requested rollback after send out
Out, or by affairs coordinator judgement global transaction it is issued after overtime;It is to apply to message-oriented middleware that message, which sends result,
It is obtained after sending the preliminary message that this global transaction is related to, and is sent to affairs coordinator.
Wherein, the implementation procedure about a stage of message branch in a global transaction can be found in embodiment one or implement
Content shown in example two.When affairs coordinator a stage receive using send rollback global transaction request after or thing
After business coordination coordinator judges current global transaction time-out, affairs coordinator can be indicated first using to the message in global transaction point
Zhi Jinhang rollback sends result comprising the corresponding message of message branch to be committed in the rollback instruction issued.Message hair
It send the result is that apply in a stage implementation procedure, is obtained after sending the preliminary message that this global transaction is related to message-oriented middleware
, and it is sent to affairs coordinator.Message transmission result is previously assigned to the message of global transaction by affairs coordinator
The branch ID of branch is stored in local after being associated.
Further, the specifying information for sending result from the received message of message-oriented middleware can be converted in a stage by applying
For json character string, and affairs coordinator is reported to, to reduce interactive information to the resource consumption of network.Correspondingly, it applies
After extracting the json character string in the rollback instruction about message branch, it is also necessary to send out the character string and original message
It send result to carry out after corresponding to, specified preliminary message content could be locked.
S920 sends as a result, sending to the message-oriented middleware rollback message according to the message of the message branch to rollback and ties
Preliminary message corresponding to fruit, and by the successful message feedback of rollback to affairs coordinator;
It applies after receiving the rollback instruction of the message branch of affairs coordinator transmission, extracts and wrapped in the instruction information
The message of the message branch contained is sent as a result, and being disappeared according to result in the content for locally searching corresponding preliminary message, such as preparation
The message id of breath.Then preliminary message corresponding to result is sent to the message-oriented middleware rollback message using message id, for example,
Message-oriented middleware is allowed to delete the preliminary message, so that the preliminary message can never consume.After message rollback success, it will return
Successful message feedback is rolled to affairs coordinator, to notify affairs coordinator that can carry out subsequent operation.
S930 receives the rollback instruction for the transaction branch that affairs coordinator is sent;
Wherein, rollback be designated as affairs coordinator receive the global transaction where transaction branch be requested rollback after send out
Out.
Affairs coordinator continues after receiving message and branching back to the successful message of rolling to the transaction branch in global transaction
Rollback is carried out, i.e., sends the rollback instruction of transaction branch to application.
Each transaction branch for including in global transaction is carried out rollback by S940 respectively, and by the successful message feedback of rollback
To affairs coordinator;
After the rollback instruction for the transaction branch for receiving affairs coordinator sending, local transaction branch is successively returned
Local database manipulation is set as failing, makes it by rolling that is, before for each transaction operation operation mirror image generated
Roll back to preoperative data mode.It is successful using the rollback for sending transaction branch to affairs coordinator after the completion of rollback
Message, to notify affairs coordinator that can carry out subsequent operation.
It, can related setting and information by this global transaction being locally stored after affairs coordinator receives the message
It removes, then notice can continue to execute other transaction operations using this global transaction rollback success, application.
The processing method of the transaction message of the embodiment of the present invention is receiving transaction coordination using application as executing subject
After the instruction for carrying out rollback to message branch issued, to the preliminary message sent before message-oriented middleware rollback;According to thing
The rollback instruction for the transaction branch that business coordinator issues, successively carries out rollback to local transaction branch.This programme realization is got over
The process flow of the two-stage (rollback) in 2PC stage of the message of being engaged in distributed transaction operation mode.
Embodiment six
It is as shown in Figure 10 based on the above-mentioned scheme thought for handling transaction message in a distributed transaction operation
The processing method flow chart six of transaction message shown in the embodiment of the present invention, the execution of this method are main for shown in Fig. 3 or Fig. 4
Affairs coordinator has related generally to the processing of the two-stage in 2PC stage of the transaction message in distributed transaction operation mode
Process.As shown in Figure 10, the processing method of the transaction message includes the following steps:
S101 sends the rollback instruction of message branch, disappearing comprising the message branch to rollback in rollback instruction to application
Breath sends result;
Wherein, rollback be designated as affairs coordinator receive the global transaction where message branch be requested rollback after send out
Out, or by affairs coordinator judgement global transaction it is issued after overtime;It is to apply to message-oriented middleware that message, which sends result,
It is obtained after sending the preliminary message that this global transaction is related to, and is sent to affairs coordinator.
Wherein, the implementation procedure about a stage of message branch in a global transaction can be found in embodiment one or implement
Content shown in example two.It, can basis when affairs coordinator is after receiving the request using the rollback global transaction sent in a stage
One stage executed the sequencing of each transaction branch and message branch, and inverted order carries out rollback to these branches, i.e., successively to answering
With the rollback instruction for sending these branches of rollback.Rollback is carried out using to the message branch in global transaction, in the rollback issued
Result is sent comprising the corresponding message of message branch to rollback in instruction.The message sends the result is that applying and executes in a stage
In the process, it is obtained after sending the preliminary message that this global transaction is related to message-oriented middleware, and is sent to affairs coordinator.
Affairs coordinator is deposited after being associated the branch ID for the message branch that message transmission result is previously assigned to global transaction
Storage is in local.
It applies after receiving the rollback instruction of the message branch of affairs coordinator transmission, extracts and wrapped in the instruction information
The message of the message branch contained is sent as a result, and being disappeared according to result in the content for locally searching corresponding preliminary message, such as preparation
The message id of breath.Then preliminary message corresponding to result is sent to the message-oriented middleware rollback message using message id, for example,
Instruction message middleware removes the preliminary message, so that the preliminary message can never consume.It, will after message rollback success
The successful message feedback of rollback is to affairs coordinator, after affairs coordinator is connected to the notice, continues to send global transaction to application
The rollback of other transaction branches or message branch for including indicates, with indicate application to local transaction branch or message branch into
Row rolling back action.
S102 sends the rollback instruction for the transaction branch that global transaction includes to application;
For example, when affairs coordinator is after receiving the request using the rollback global transaction sent in a stage, it can basis
One stage executed the sequencing of each transaction branch and message branch, and inverted order carries out rollback to these branches, i.e., successively to answering
With the rollback instruction for sending these branches of rollback.Rollback is carried out using to the transaction branch in global transaction, sends thing to application
The rollback instruction of business branch.
After the rollback instruction for the transaction branch for receiving affairs coordinator sending, local transaction branch is successively returned
Local database manipulation is set as failing, makes it by rolling that is, before for each transaction operation operation mirror image generated
Roll back to preoperative data mode.It is successful using the rollback for sending transaction branch to affairs coordinator after the completion of rollback
Message, to notify affairs coordinator that can carry out subsequent operation.
The rollback of S103, each message branch and transaction branch that the global transaction in response to application feedback is included are successful
Message sends to application and is directed to this successful message of global transaction rollback;
The rollback that affairs coordinator receives all message branches and transaction branch that global transaction is included successfully disappears
, can be by the related setting and erasing of information for this global transaction being locally stored after breath, then notice is using this global thing
Being engaged in, rollback is successful, and application can continue to execute other transaction operations.
The processing method of the transaction message of the embodiment of the present invention is connect using affairs coordinator as executing subject in a stage
After receiving the rollback request using the global transaction sent, the execution according to transaction branch each in a stage and message branch is suitable
Secondary, inverted order issues rollback instruction to these branches, so as to indicate using according to rollback, to corresponding transaction branch or message point
Zhi Jinhang rolling back action.The two-stage that this programme realizes 2PC stage of the transaction message in distributed transaction operation mode (returns
Rolling) process flow.
Embodiment seven
It as shown in fig. 11a, is the processing unit structure chart one of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in Figure 5 comprising:
Global transaction request module 111 obtains this for sending the request for opening global transaction to affairs coordinator
The ID of the affairs ID of secondary global transaction and the message branch for being included;
Message branch preparation block 112, for sending the preliminary message that this global transaction is related to message-oriented middleware, and
Result being sent from the received message of message-oriented middleware and reporting to affairs coordinator, the message is sent by result and institute with instruction
State the branch ID association of message branch;
Transaction branch execution module 113, each transaction branch for including for executing global transaction;
Global transaction reporting module 114, for sending submission or the request of rollback global transaction to affairs coordinator, with root
According to the instruction that affairs coordinator returns, each transaction branch and message branch for included to global transaction carry out submission or rollback.
Further, as shown in figure 11b, above-mentioned global transaction request module 111 can include:
Global transaction opening unit 1111, for sending the request for opening this global transaction to affairs coordinator,
And the corresponding affairs ID of this global transaction is obtained from affairs coordinator;
Message branch registering unit 1112, for being sent out to affairs coordinator according to the corresponding affairs ID of this global transaction
The request of registration message branch is sent, and obtains the branch ID for the message branch that this global transaction is included from affairs coordinator.
Further, the above-mentioned message branch for being included to global transaction submit or rollback includes:
To message-oriented middleware submission or rollback preliminary message.
Further, above-mentioned message branch preparation block 113 will send result from the received message of message-oriented middleware and report
To affairs coordinator can include:
The information for sending result from the received message of message-oriented middleware is converted into json character string, and reports to affairs association
Adjust device.
The processing unit of the transaction message of the embodiment of the present invention, using transaction message as a message of global transaction point
Branch, is registered to affairs coordinator;And the message that message branch and execution send preliminary message operation is sent into result and is carried out
Association, really transaction message to be registered in the global transaction of affairs coordinator institute maintenance management;Global thing is completed executing
It is engaged in after each transaction branch for being included and message branch, according to the success or failure of execution as a result, being sent to affairs coordinator
The submission or rollback of global transaction are requested, with the instruction returned according to affairs coordinator, each affairs for being included to global transaction
Branch and message branch carry out submission or rollback.This programme realizes 2PC of the transaction message in distributed transaction operation mode
The process flow in one stage in stage.
Embodiment eight
It as figure 12 a shows, is the processing unit structure chart two of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in FIG. 6 comprising:
Global transaction accepts module 121, for transmitted for opening the request of this global transaction according to application, to
Using the ID for the message branch for returning to the affairs ID of this global transaction and being included;
Message branch relating module 122, the message for reporting in response to application send result and send message and ties
The associated instruction of branch ID of fruit and message branch executes operation associated;It is that application is sent out to message-oriented middleware that message, which sends result,
It is obtained after the preliminary message for giving this global transaction to be related to;
Global transaction summarizing module 123, for receive using send submission or rollback global transaction request, using as
It is subsequent issue each transaction branch for being included to global transaction and message branch submitted accordingly or the instruction of rollback according to
According to.
Further, as shown in Figure 12b, above-mentioned global transaction accepts module 121 can include:
Global transaction accepts unit 1211, for transmitted for opening the request of this global transaction according to application,
The affairs ID of this global transaction is returned to application;
Message branch accepts unit 1212, in response to applying asking according to the affairs ID registration message branch sent
It asks, and returns to the branch ID for the message branch that this global transaction is included to application.
The processing unit of the transaction message of the embodiment of the present invention, using transaction message as a message of global transaction point
Branch is registered locally;And be associated message branch with the message transmission result for sending preliminary message operation is executed, with
Really transaction message is registered in global transaction;Each transaction branch and message that global transaction is included are completed in application execution
After branch, the submission or rollback for receiving the global transaction that application is sent according to the result of the success or failure of execution are requested, and
The foundation of submission or rollback instruction is issued in this, as each transaction branch and message branch for being included to global transaction.This programme
Realize the process flow in a stage in 2PC stage of the transaction message in distributed transaction operation mode.
Embodiment nine
It as shown in figure 13, is the processing unit structure chart three of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in Figure 7 comprising:
Message submits receiving module 131, and the submission instruction of the message branch for receiving affairs coordinator transmission, submission refers to
Message in showing comprising message branch to be committed sends result;
Message submits processing module 132, for being sent according to the message of message branch to be committed as a result, among message
Part submits the message to send preliminary message corresponding to result, and successful message feedback will be submitted to affairs coordinator;
Affairs submit receiving module 133, the submission instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction commitment processing module 134, for each transaction branch for including in global transaction to be submitted respectively, and will
Submit successful message feedback to affairs coordinator.
Further, the submission of above-mentioned message branch is designated as the overall situation of the affairs coordinator where receiving message branch
It is issued after the requested submission of affairs;
The submission of transaction branch is designated as that global transaction of the affairs coordinator where receiving transaction branch is requested to be mentioned
It is issued after friendship.
Further, it is to send the preparation that this global transaction is related to using to message-oriented middleware that above-mentioned message, which sends result,
It is obtained after message, and is sent to affairs coordinator.
The processing unit of the transaction message of the embodiment of the present invention is receiving carrying out to message branch for transaction coordination sending
After the instruction of submission, the preliminary message sent before is submitted to message-oriented middleware;Then, it is issued further according to affairs coordinator
The submission of transaction branch indicates, successively submits to local transaction branch.This programme realizes transaction message in distribution
The process flow of the two-stage (submission) in the 2PC stage in transaction operation mode.
Embodiment ten
It as shown in figure 14, is the processing unit structure chart four of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in Figure 8 comprising:
Message submit indicating module 141, for application send message branch submission instruction, submit instruction in comprising to
The message of the message branch of submission sends result;
Affairs submit indicating module 142, the successful message of submission for message branch for feeding back in response to application,
The submission instruction for the transaction branch that global transaction includes is sent to application;
Submission is successfully processed module 143, the successful message of the submission for transaction branch for feeding back in response to application,
It is sent to application and submits successful message for this global transaction.
Further, the submission of above-mentioned message branch is designated as the overall situation of the affairs coordinator where receiving message branch
It is issued after the requested submission of affairs.
Further, it is to send the preparation that this global transaction is related to using to message-oriented middleware that above-mentioned message, which sends result,
It is obtained after message, and is sent to affairs coordinator.
The processing unit of the transaction message of the embodiment of the present invention receives mentioning using the global transaction sent in a stage
After handing over request, first to the instruction submitted using sending to message branch, the letter waiting for receiving the successful submission using feedback
After breath, then submitting for transaction branch is issued to application and indicates to guarantee transaction message and the consistency that local data base operates.
This programme realizes the process flow of the two-stage (submission) in 2PC stage of the transaction message in distributed transaction operation mode.
Embodiment 11
It as shown in figure 15, is the processing unit structure chart five of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in Figure 9 comprising:
Message rollback receiving module 151, the rollback instruction of the message branch for receiving affairs coordinator transmission, rollback refer to
Message comprising the message branch to rollback in showing sends result;
Message rollback processing module 152 is sent for the message according to the message branch to rollback as a result, among message
The part rollback message sends preliminary message corresponding to result, and by the successful message feedback of rollback to affairs coordinator;
Transaction rollback receiving module 153, the rollback instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction rollback processing module 154, for each transaction branch for including in global transaction to be carried out rollback respectively, and will
The successful message feedback of rollback is to affairs coordinator.
Further, the rollback of above-mentioned message branch is designated as the overall situation of the affairs coordinator where receiving message branch
It is issued after the requested rollback of affairs, or issued after overtime by affairs coordinator judgement global transaction.
Further, it is to send the preparation that this global transaction is related to using to message-oriented middleware that above-mentioned message, which sends result,
It is obtained after message, and is sent to affairs coordinator.
The processing unit of the transaction message of the embodiment of the present invention is receiving carrying out to message branch for transaction coordination sending
After the instruction of rollback, to the preliminary message sent before message-oriented middleware rollback;The affairs point issued according to affairs coordinator
The rollback instruction of branch, successively carries out rollback to local transaction branch.This programme realizes transaction message and grasps in distributed transaction
The process flow of the two-stage (rollback) in the 2PC stage in operation mode.
Embodiment 12
It as shown in figure 16, is the processing unit structure chart six of the transaction message of the embodiment of the present invention, the place of the transaction message
Reason device can be used for executing method and step as shown in Figure 10 comprising:
Message rollback indicating module 161, for application send message branch rollback instruction, rollback instruction in comprising to
The message of the message branch of rollback sends result;
Transaction rollback indicating module 162, for sending the rollback instruction for the transaction branch that global transaction includes to application;
Rollback is successfully processed module 163, in response to application feedback global transaction each message branch for being included and
The successful message of the rollback of transaction branch sends to application and is directed to this successful message of global transaction rollback.
Further, the rollback of above-mentioned message branch is designated as the overall situation of the affairs coordinator where receiving message branch
It is issued after the requested rollback of affairs, or issued after overtime by affairs coordinator judgement global transaction.
Further, it is to send the preparation that this global transaction is related to using to message-oriented middleware that above-mentioned message, which sends result,
It is obtained after message, and is sent to affairs coordinator.
The processing unit of the transaction message of the embodiment of the present invention receives returning using the global transaction sent in a stage
After rolling request, sequentially according to the execution of transaction branch each in a stage and message branch, inverted order issues rollback to these branches
Instruction carries out rolling back action to corresponding transaction branch or message branch so as to indicate using according to rollback.This programme realizes
The process flow of the two-stage (rollback) in 2PC stage of the transaction message in distributed transaction operation mode.
Embodiment 13
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 17, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 171
With processor 172.
Memory 171, for storing program.
In addition to above procedure, memory 171 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 171 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 172 is coupled to memory 171, for executing the program in memory 171, to be used for:
The request for opening global transaction is sent to affairs coordinator, obtains the affairs ID and packet of this global transaction
The ID of the message branch contained;
The preliminary message that this global transaction is related to is sent to message-oriented middleware, and will be from the received message of message-oriented middleware
It sends result and reports to affairs coordinator, be associated with message transmission result with the branch ID of message branch with instruction;
Execute each transaction branch that global transaction includes;
It sends and submits or the request of rollback global transaction to affairs coordinator, with the instruction returned according to affairs coordinator,
Each transaction branch and message branch for included to global transaction carry out submission or rollback.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 17, electronic equipment can also include: communication component 173, power supply module 174, audio component
175, other components such as display 176.Members are only schematically provided in Figure 17, are not meant to that electronic equipment only includes figure
Component shown in 17.
Communication component 173 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 173 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 173 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 174 provides electric power for the various assemblies of electronic equipment.Power supply module 174 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 175 is configured as output and/or input audio signal.For example, audio component 175 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 171 or via communication set
Part 173 is sent.In some embodiments, audio component 175 further includes a loudspeaker, is used for output audio signal.
Display 176 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 14
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 18, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 181
With processor 182.
Memory 181, for storing program.
In addition to above procedure, memory 181 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 181 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 182 is coupled to memory 181, for executing the program in memory 181, to be used for:
According to the transmitted request for being used to open this global transaction of application, the thing of this global transaction is returned to application
The ID of business ID and the message branch for being included;
It sends result in response to the message that application reports and message is sent into result and be associated with the branch ID of message branch
Instruction, execute it is operation associated;It is to send the preparation that this global transaction is related to using to message-oriented middleware that message, which sends result,
It is obtained after message;
The request for receiving submission or rollback global transaction that application is sent, to be included to global transaction as subsequent issue
Each transaction branch and message branch is submitted accordingly or the foundation of the instruction of rollback.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 18, electronic equipment can also include: communication component 183, power supply module 184, audio component
185, other components such as display 186.Members are only schematically provided in Figure 18, are not meant to that electronic equipment only includes figure
Component shown in 18.
Communication component 183 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 183 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 183 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 184 provides electric power for the various assemblies of electronic equipment.Power supply module 184 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 185 is configured as output and/or input audio signal.For example, audio component 185 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 181 or via communication set
Part 183 is sent.In some embodiments, audio component 185 further includes a loudspeaker, is used for output audio signal.
Display 186 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 15
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 19, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 191
With processor 192.
Memory 191, for storing program.
In addition to above procedure, memory 191 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 191 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 192 is coupled to memory 191, for executing the program in memory 191, to be used for:
The submission instruction for the message branch that affairs coordinator is sent is received, submitting includes message branch to be committed in instruction
Message send result;
It is sent according to the message of message branch to be committed as a result, submitting message transmission result institute right to message-oriented middleware
The preliminary message answered, and successful message feedback will be submitted to affairs coordinator;
Receive the submission instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in global transaction is submitted respectively, and successful message feedback will be submitted to affairs
Coordinator.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 19, electronic equipment can also include: communication component 193, power supply module 194, audio component
195, other components such as display 196.Members are only schematically provided in Figure 19, are not meant to that electronic equipment only includes figure
Component shown in 19.
Communication component 193 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 193 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 193 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 194 provides electric power for the various assemblies of electronic equipment.Power supply module 194 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 195 is configured as output and/or input audio signal.For example, audio component 195 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 191 or via communication set
Part 193 is sent.In some embodiments, audio component 195 further includes a loudspeaker, is used for output audio signal.
Display 196 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 16
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 20, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 201
With processor 202.
Memory 201, for storing program.
In addition to above procedure, memory 201 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 201 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 202 is coupled to memory 201, for executing the program in memory 201, to be used for:
The submission instruction that message branch is sent to application, submits the message in instruction comprising message branch to be committed to send
As a result;
In response to the successful message of submission for message branch of application feedback, sending global transaction to application includes
The submission of transaction branch indicates;
In response to the successful message of the submission for transaction branch of application feedback, send to application for this global thing
Successful message is submitted in business.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 20, electronic equipment can also include: communication component 203, power supply module 204, audio component
205, other components such as display 206.Members are only schematically provided in Figure 20, are not meant to that electronic equipment only includes figure
Component shown in 20.
Communication component 203 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 203 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 203 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 204 provides electric power for the various assemblies of electronic equipment.Power supply module 204 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 205 is configured as output and/or input audio signal.For example, audio component 205 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 201 or via communication set
Part 203 is sent.In some embodiments, audio component 205 further includes a loudspeaker, is used for output audio signal.
Display 206 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 17
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 21, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 211
With processor 212.
Memory 211, for storing program.
In addition to above procedure, memory 211 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 211 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 212 is coupled to memory 211, for executing the program in memory 211, to be used for:
The rollback instruction for the message branch that affairs coordinator is sent is received, includes the message branch to rollback in rollback instruction
Message send result;
It is sent according to the message of the message branch to rollback as a result, right to message-oriented middleware rollback message transmission result institute
The preliminary message answered, and by the successful message feedback of rollback to affairs coordinator;
Receive the rollback instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in global transaction is subjected to rollback respectively, and by the successful message feedback of rollback to affairs
Coordinator.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 21, electronic equipment can also include: communication component 213, power supply module 214, audio component
215, other components such as display 216.Members are only schematically provided in Figure 21, are not meant to that electronic equipment only includes figure
Component shown in 21.
Communication component 213 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 213 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 213 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 214 provides electric power for the various assemblies of electronic equipment.Power supply module 214 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 215 is configured as output and/or input audio signal.For example, audio component 215 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 211 or via communication set
Part 213 is sent.In some embodiments, audio component 215 further includes a loudspeaker, is used for output audio signal.
Display 216 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Embodiment 18
It disclosed the overall architecture of the processing unit of transaction message, the function of the device can be by a kind of electronic equipment
It realizes and completes, as shown in figure 22, be the structural schematic diagram of the electronic equipment of the embodiment of the present invention, specifically include: memory 221
With processor 222.
Memory 221, for storing program.
In addition to above procedure, memory 221 is also configured to store various other data to support in electronic equipment
On operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection
It is personal data, telephone book data, message, picture, video etc..
Memory 221 can realize by any kind of volatibility or non-volatile memory device or their combination,
Such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only
Memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk
Or CD.
Processor 222 is coupled to memory 221, for executing the program in memory 221, to be used for:
The rollback instruction of message branch is sent to application, rollback is designated as affairs coordinator where receiving message branch
Global transaction be requested rollback after issue, or by affairs coordinator determine to issue after global transaction time-out;Rollback refers to
Message comprising the message branch to rollback in showing sends result;It is to send this using to message-oriented middleware that message, which sends result,
It is obtained after the preliminary message that global transaction is related to, and is sent to affairs coordinator;
The rollback instruction for the transaction branch that global transaction includes is sent to application;
Successfully disappear in the rollback for receiving each message branch and transaction branch that are included using the global transaction of feedback
After breath, is sent to application and be directed to this successful message of global transaction rollback.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 22, electronic equipment can also include: communication component 223, power supply module 224, audio component
225, other components such as display 226.Members are only schematically provided in Figure 22, are not meant to that electronic equipment only includes figure
Component shown in 22.
Communication component 223 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electricity
Sub- equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 223 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, communication component 223 further includes near-field communication (NFC) module, to promote short range communication.
For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module
Art, bluetooth (BT) technology and other technologies are realized.
Power supply module 224 provides electric power for the various assemblies of electronic equipment.Power supply module 224 may include power management
System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 225 is configured as output and/or input audio signal.For example, audio component 225 includes a Mike
Wind (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 221 or via communication set
Part 223 is sent.In some embodiments, audio component 225 further includes a loudspeaker, is used for output audio signal.
Display 226 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen
Curtain includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one
A or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touching
It touches or the boundary of sliding action, but also detects duration and pressure relevant with touch or slide.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent
Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (42)
1. a kind of processing method of transaction message characterized by comprising
The request for opening global transaction is sent to affairs coordinator, obtain the affairs ID of this global transaction and is included
The ID of message branch;
The preliminary message that this global transaction is related to is sent to message-oriented middleware, and will be from the received message of the message-oriented middleware
It sends result and reports to the affairs coordinator, to indicate that the branch ID that the message is sent to result and the message branch is closed
Connection;
Execute each transaction branch that the global transaction includes;
Submission or the request of rollback global transaction are sent to the affairs coordinator, with the finger returned according to the affairs coordinator
Show, each transaction branch and message branch for included to the global transaction carry out submission or rollback.
2. the method according to claim 1, wherein described send to affairs coordinator for opening global transaction
Request, the ID of the affairs ID for obtaining this global transaction and the message branch for being included includes:
Send the request for opening this global transaction to affairs coordinator, and from the affairs coordinator obtain it is described this
The corresponding affairs ID of global transaction;
According to the corresponding affairs ID of this described global transaction, Xiang Suoshu affairs coordinator sends the request of registration message branch,
And the branch ID for the message branch that this global transaction is included is obtained from the affairs coordinator.
3. the method according to claim 1, wherein the message branch for being included to the global transaction into
Row is submitted or rollback includes:
To preliminary message described in message-oriented middleware submission or rollback.
4. the method according to claim 1, wherein described will send from the received message of the message-oriented middleware
As a result the affairs coordinator is reported to, comprising:
The information for sending result from the received message of the message-oriented middleware is converted into json character string, and reports to the thing
Business coordinator.
5. a kind of processing method of transaction message characterized by comprising
According to the transmitted request for being used to open this global transaction of application, this described global transaction is returned to the application
Affairs ID and the message branch that is included ID;
Result is sent in response to the message that the application reports and the message is sent to point of result and the message branch
The associated instruction of branch ID executes operation associated;It is that described apply to message-oriented middleware sends this entirely that the message, which sends result,
It is obtained after the preliminary message that office's affairs are related to;
The request for receiving submission or rollback global transaction that application is sent, to be included to the global transaction as subsequent issue
Each transaction branch and message branch is submitted accordingly or the foundation of the instruction of rollback.
6. the processing method of transaction message according to claim 5, which is characterized in that described according to using transmitted use
In the request for opening this global transaction, the affairs ID of this global transaction and the message for being included are returned to the application
The ID of branch includes:
According to the transmitted request for being used to open this global transaction of application, this described global transaction is returned to the application
Affairs ID;
In response to the application according to the request of the affairs ID registration message branch sent, and to described in application return
The branch ID for the message branch that this global transaction is included.
7. a kind of processing method of transaction message characterized by comprising
The submission instruction for the message branch that affairs coordinator is sent is received, includes message branch to be committed in the submission instruction
Message send result;
It is sent according to the message of message branch to be committed as a result, submitting the message to send corresponding to result to message-oriented middleware
Preliminary message, and successful message feedback will be submitted to the affairs coordinator;
Receive the submission instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is submitted respectively, and successful message feedback will be submitted to described
Affairs coordinator.
8. the processing method of transaction message according to claim 7, which is characterized in that
The submission of the message branch is designated as global transaction of the affairs coordinator where receiving the message branch
It is issued after requested submission;
The submission of the transaction branch is designated as global transaction of the affairs coordinator where receiving the transaction branch
It is issued after requested submission.
9. the processing method of transaction message according to claim 7, which is characterized in that it is application that the message, which sends result,
It is obtained after sending the preliminary message that this global transaction is related to the message-oriented middleware, and is sent to the affairs coordinator
's.
10. a kind of processing method of transaction message characterized by comprising
The submission instruction of message branch is sent to application, the message submitted in instruction comprising message branch to be committed is sent
As a result;
In response to the successful message of submission for message branch of application feedback, the global thing is sent to the application
The submission for the transaction branch that business includes indicates;
In response to the successful message of the submission for transaction branch of application feedback, sent to the application complete for this
Office's affairs submit successful message.
11. the processing method of transaction message according to claim 10, which is characterized in that the submission of the message branch refers to
It is shown as what the affairs coordinator issued after receiving the requested submission of the global transaction where the message branch.
12. the processing method of transaction message according to claim 10, which is characterized in that it is to answer that the message, which sends result,
With obtaining after sending the preliminary message that this global transaction is related to the message-oriented middleware, and it is sent to the affairs coordinator
's.
13. a kind of processing method of transaction message characterized by comprising
The rollback instruction for the message branch that affairs coordinator is sent is received, includes the message branch to rollback in the rollback instruction
Message send result;
It is sent according to the message of the message branch to rollback as a result, being sent corresponding to result to the message-oriented middleware rollback message
Preliminary message, and by the successful message feedback of rollback to the affairs coordinator;
Receive the rollback instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is subjected to rollback respectively, and by the successful message feedback of rollback to described
Affairs coordinator.
14. the processing method of transaction message according to claim 13, which is characterized in that the rollback of the message branch refers to
It is shown as what the affairs coordinator issued after receiving the global transaction where the message branch and being requested rollback, Huo Zheyou
What the affairs coordinator determined to issue after global transaction time-out.
15. the processing method of transaction message according to claim 13, which is characterized in that it is to answer that the message, which sends result,
With obtaining after sending the preliminary message that this global transaction is related to the message-oriented middleware, and it is sent to the affairs coordinator
's.
16. a kind of processing method of transaction message characterized by comprising
The rollback instruction of message branch is sent to application, the message comprising the message branch to rollback is sent in the rollback instruction
As a result;
The rollback instruction for the transaction branch that the global transaction includes is sent to the application;
The rollback of each message branch and transaction branch that the global transaction in response to application feedback is included is successful
Message sends to the application and is directed to this successful message of global transaction rollback.
17. the processing method of transaction message according to claim 16, which is characterized in that the rollback of the message branch refers to
It is shown as what the affairs coordinator issued after receiving the global transaction where the message branch and being requested rollback, Huo Zheyou
What the affairs coordinator determined to issue after global transaction time-out.
18. the processing method of transaction message according to claim 16, which is characterized in that it is to answer that the message, which sends result,
With obtaining after sending the preliminary message that this global transaction is related to the message-oriented middleware, and it is sent to the affairs coordinator
's.
19. a kind of processing unit of transaction message characterized by comprising
Global transaction request module obtains this overall situation for sending the request for opening global transaction to affairs coordinator
The ID of the affairs ID of affairs and the message branch for being included;
Message branch preparation block, for sending the preliminary message that this global transaction is related to message-oriented middleware, and will be from institute
State the received message of message-oriented middleware and send result and report to the affairs coordinator, with instruction by the message send result with
The branch ID of the message branch is associated with;
Transaction branch execution module, each transaction branch for including for executing the global transaction;
Global transaction reporting module, for sending submission or the request of rollback global transaction to the affairs coordinator, with basis
The instruction that the affairs coordinator returns, each transaction branch and message branch for included to the global transaction submit or
Rollback.
20. device according to claim 19, which is characterized in that the global transaction request module includes:
Global transaction opening unit, for sending the request for opening this global transaction to affairs coordinator, and from described
Affairs coordinator obtains the corresponding affairs ID of this described global transaction;
Message branch registering unit, for according to the corresponding affairs ID of this described global transaction, Xiang Suoshu affairs coordinator hair
The request of registration message branch is sent, and obtains the branch for the message branch that this global transaction is included from the affairs coordinator
ID。
21. device according to claim 19, which is characterized in that the message branch for being included to the global transaction
Submit or rollback includes:
To preliminary message described in message-oriented middleware submission or rollback.
22. device according to claim 19, which is characterized in that message branch preparation block will be from the message
Between the received message of part send result and report to the affairs coordinator and include:
The information for sending result from the received message of the message-oriented middleware is converted into json character string, and reports to the thing
Business coordinator.
23. a kind of processing unit of transaction message characterized by comprising
Global transaction accepts module, for the request that is used to open this global transaction transmitted according to application, answers to described
With the ID for the affairs ID and the message branch for being included for returning to this global transaction;
Message branch relating module, the message for reporting in response to the application send result and send the message
As a result it with the associated instruction of branch ID of the message branch, executes operation associated;It is the application that the message, which sends result,
It is obtained after sending the preliminary message that this global transaction is related to message-oriented middleware;
Global transaction summarizing module, for receiving the request using the submission or rollback global transaction that send, as under subsequent
It sends out each transaction branch for being included to the global transaction and message branch is submitted accordingly or the foundation of the instruction of rollback.
24. device according to claim 23, which is characterized in that global transaction accepts module and includes:
Global transaction accepts unit, for the request that is used to open this global transaction transmitted according to application, answers to described
With the affairs ID for returning to this global transaction;
Message branch accepts unit, in response to application the asking according to the affairs ID registration message branch sent
It asks, and returns to the branch ID for the message branch that this described global transaction is included to the application.
25. a kind of processing unit of transaction message characterized by comprising
Message submits receiving module, the submission instruction of the message branch for receiving affairs coordinator transmission, the submission instruction
In comprising message branch to be committed message send result;
Message submits processing module, for being sent according to the message of message branch to be committed as a result, submitting to message-oriented middleware
The message sends preliminary message corresponding to result, and successful message feedback will be submitted to the affairs coordinator;
Affairs submit receiving module, the submission instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction commitment processing module for submitting each transaction branch for including in the global transaction respectively, and will mention
Hand over successful message feedback to the affairs coordinator.
26. device according to claim 25, which is characterized in that the submission of the message branch is designated as the affairs association
Device is adjusted to issue after receiving the requested submission of the global transaction where the message branch;
The submission of the transaction branch is designated as global transaction of the affairs coordinator where receiving the transaction branch
It is issued after requested submission.
27. device according to claim 25, which is characterized in that it is application into the message that the message, which sends result,
Between part send the preliminary message that this global transaction is related to after obtain, and be sent to the affairs coordinator.
28. a kind of processing unit of transaction message characterized by comprising
Message submits indicating module, and the submission for sending message branch to application indicates, comprising wait mention in the submission instruction
The message of the message branch of friendship sends result;
Affairs submission indicating module, the successful message of submission for message branch for being fed back in response to the application, to
The application sends the submission instruction for the transaction branch that the global transaction includes;
Submission is successfully processed module, the successful message of the submission for transaction branch for feeding back in response to the application, to
The application, which is sent, submits successful message for this global transaction.
29. device according to claim 28, which is characterized in that the submission of the message branch is designated as the affairs association
Device is adjusted to issue after receiving the requested submission of the global transaction where the message branch.
30. device according to claim 28, which is characterized in that it is application into the message that the message, which sends result,
Between part send the preliminary message that this global transaction is related to after obtain, and be sent to the affairs coordinator.
31. a kind of processing unit of transaction message characterized by comprising
Message rollback receiving module, the rollback instruction of the message branch for receiving affairs coordinator transmission, the rollback instruction
In comprising to rollback message branch message send result;
Message rollback processing module, for being sent according to the message of the message branch to rollback as a result, to message-oriented middleware rollback
The message sends preliminary message corresponding to result, and by the successful message feedback of rollback to the affairs coordinator;
Transaction rollback receiving module, the rollback instruction of the transaction branch for receiving affairs coordinator transmission;
Transaction rollback processing module for each transaction branch for including in the global transaction to be carried out rollback respectively, and will return
Successful message feedback is rolled to the affairs coordinator.
32. device according to claim 31, which is characterized in that the rollback of the message branch is designated as the affairs association
Device is adjusted to issue after receiving the global transaction where the message branch and being requested rollback, or by the affairs coordinator
Determine to issue after global transaction time-out.
33. device according to claim 31, which is characterized in that it is application into the message that the message, which sends result,
Between part send the preliminary message that this global transaction is related to after obtain, and be sent to the affairs coordinator.
34. a kind of processing unit of transaction message characterized by comprising
Message rollback indicating module includes wait return in the rollback instruction for sending the rollback instruction of message branch to application
The message of the message branch of rolling sends result;
Transaction rollback indicating module, the rollback for sending the transaction branch that the global transaction includes to the application indicate;
Rollback is successfully processed module, each message branch that the global transaction for feeding back in response to the application is included and
The successful message of the rollback of transaction branch sends to the application and is directed to this successful message of global transaction rollback.
35. device according to claim 34, which is characterized in that the rollback of the message branch is designated as the affairs association
Device is adjusted to issue after receiving the global transaction where the message branch and being requested rollback, or by the affairs coordinator
Determine to issue after global transaction time-out.
36. device according to claim 34, which is characterized in that it is application into the message that the message, which sends result,
Between part send the preliminary message that this global transaction is related to after obtain, and be sent to the affairs coordinator.
37. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The request for opening global transaction is sent to affairs coordinator, obtain the affairs ID of this global transaction and is included
The ID of message branch;
The preliminary message that this global transaction is related to is sent to message-oriented middleware, and will be from the received message of the message-oriented middleware
It sends result and reports to the affairs coordinator, to indicate that the branch ID that the message is sent to result and the message branch is closed
Connection;
Execute each transaction branch that the global transaction includes;
Submission or the request of rollback global transaction are sent to the affairs coordinator, with the finger returned according to the affairs coordinator
Show, each transaction branch and message branch for included to the global transaction carry out submission or rollback.
38. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
According to the transmitted request for being used to open this global transaction of application, this described global transaction is returned to the application
Affairs ID and the message branch that is included ID;
Result is sent in response to the message that the application reports and the message is sent to point of result and the message branch
The associated instruction of branch ID executes operation associated;It is that described apply to message-oriented middleware sends this entirely that the message, which sends result,
It is obtained after the preliminary message that office's affairs are related to;
The request for receiving submission or rollback global transaction that application is sent, to be included to the global transaction as subsequent issue
Each transaction branch and message branch is submitted accordingly or the foundation of the instruction of rollback.
39. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The submission instruction for the message branch that affairs coordinator is sent is received, includes message branch to be committed in the submission instruction
Message send result;
It is sent according to the message of message branch to be committed as a result, submitting the message to send corresponding to result to message-oriented middleware
Preliminary message, and successful message feedback will be submitted to the affairs coordinator;
Receive the submission instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is submitted respectively, and successful message feedback will be submitted to described
Affairs coordinator.
40. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The submission instruction of message branch is sent to application, the message submitted in instruction comprising message branch to be committed is sent
As a result;
In response to the successful message of submission for message branch of application feedback, the global thing is sent to the application
The submission for the transaction branch that business includes indicates;
In response to the successful message of the submission for transaction branch of application feedback, sent to the application complete for this
Office's affairs submit successful message.
41. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The rollback instruction for the message branch that affairs coordinator is sent is received, includes the message branch to rollback in the rollback instruction
Message send result;
It is sent according to the message of the message branch to rollback as a result, being sent corresponding to result to the message-oriented middleware rollback message
Preliminary message, and by the successful message feedback of rollback to the affairs coordinator;
Receive the rollback instruction for the transaction branch that affairs coordinator is sent;
Each transaction branch for including in the global transaction is subjected to rollback respectively, and by the successful message feedback of rollback to described
Affairs coordinator.
42. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The rollback instruction of message branch is sent to application, the message comprising the message branch to rollback is sent in the rollback instruction
As a result;
The rollback instruction for the transaction branch that the global transaction includes is sent to the application;
The rollback of each message branch and transaction branch that the global transaction in response to application feedback is included is successful
Message sends to the application and is directed to this successful message of global transaction rollback.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710972967.XA CN109684045B (en) | 2017-10-18 | 2017-10-18 | Transaction message processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710972967.XA CN109684045B (en) | 2017-10-18 | 2017-10-18 | Transaction message processing method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109684045A true CN109684045A (en) | 2019-04-26 |
CN109684045B CN109684045B (en) | 2023-04-28 |
Family
ID=66182959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710972967.XA Active CN109684045B (en) | 2017-10-18 | 2017-10-18 | Transaction message processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684045B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471746A (en) * | 2019-08-22 | 2019-11-19 | 中国工商银行股份有限公司 | A kind of distributed transaction callback method, apparatus and system |
CN111259083A (en) * | 2020-02-13 | 2020-06-09 | 神州数码融信软件有限公司 | Distributed transaction processing method and device |
CN111679930A (en) * | 2020-06-08 | 2020-09-18 | 中国银行股份有限公司 | Single-point rollback method and system for CICS online transaction |
CN112995262A (en) * | 2019-12-18 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Distributed transaction submission method, system and computing equipment |
CN113377557A (en) * | 2021-07-01 | 2021-09-10 | 挂号网(杭州)科技有限公司 | Service processing method and system and electronic equipment |
CN113872781A (en) * | 2020-06-30 | 2021-12-31 | 阿里巴巴集团控股有限公司 | Transaction processing method, device, equipment and storage medium |
CN117112149A (en) * | 2023-10-24 | 2023-11-24 | 苔花科迈(西安)信息技术有限公司 | Mining area mine business process communication method, device, medium and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078326A1 (en) * | 2000-11-06 | 2004-04-22 | Strydom Johan Lamprecht Theron | Data processing system |
US20070038569A1 (en) * | 2005-08-10 | 2007-02-15 | International Business Machines Corporation | Inherited transactions in asynchronous messaging |
CN106201666A (en) * | 2016-06-24 | 2016-12-07 | 浪潮软件股份有限公司 | A kind of distributed transaction implementation method |
CN106255956A (en) * | 2014-04-28 | 2016-12-21 | 甲骨文国际公司 | Public affair identifier is supported to optimize and the system and method for affairs cohesion based on the resource manager instance perception in transaction environment |
CN107045454A (en) * | 2016-02-06 | 2017-08-15 | 华为技术有限公司 | Striding course distributed transaction control method and related system |
-
2017
- 2017-10-18 CN CN201710972967.XA patent/CN109684045B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040078326A1 (en) * | 2000-11-06 | 2004-04-22 | Strydom Johan Lamprecht Theron | Data processing system |
US20070038569A1 (en) * | 2005-08-10 | 2007-02-15 | International Business Machines Corporation | Inherited transactions in asynchronous messaging |
CN106255956A (en) * | 2014-04-28 | 2016-12-21 | 甲骨文国际公司 | Public affair identifier is supported to optimize and the system and method for affairs cohesion based on the resource manager instance perception in transaction environment |
CN107045454A (en) * | 2016-02-06 | 2017-08-15 | 华为技术有限公司 | Striding course distributed transaction control method and related system |
CN106201666A (en) * | 2016-06-24 | 2016-12-07 | 浪潮软件股份有限公司 | A kind of distributed transaction implementation method |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471746A (en) * | 2019-08-22 | 2019-11-19 | 中国工商银行股份有限公司 | A kind of distributed transaction callback method, apparatus and system |
CN112995262A (en) * | 2019-12-18 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Distributed transaction submission method, system and computing equipment |
CN112995262B (en) * | 2019-12-18 | 2022-06-10 | 中国移动通信集团浙江有限公司 | Distributed transaction submission method, system and computing equipment |
CN111259083A (en) * | 2020-02-13 | 2020-06-09 | 神州数码融信软件有限公司 | Distributed transaction processing method and device |
CN111679930A (en) * | 2020-06-08 | 2020-09-18 | 中国银行股份有限公司 | Single-point rollback method and system for CICS online transaction |
CN111679930B (en) * | 2020-06-08 | 2023-06-20 | 中国银行股份有限公司 | Single-point rollback method and system for CICS online transaction |
CN113872781A (en) * | 2020-06-30 | 2021-12-31 | 阿里巴巴集团控股有限公司 | Transaction processing method, device, equipment and storage medium |
CN113377557A (en) * | 2021-07-01 | 2021-09-10 | 挂号网(杭州)科技有限公司 | Service processing method and system and electronic equipment |
CN117112149A (en) * | 2023-10-24 | 2023-11-24 | 苔花科迈(西安)信息技术有限公司 | Mining area mine business process communication method, device, medium and equipment |
CN117112149B (en) * | 2023-10-24 | 2024-02-06 | 苔花科迈(西安)信息技术有限公司 | Mining area mine business process communication method, device, medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109684045B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109684045A (en) | Processing method, device and the electronic equipment of transaction message | |
TWI683272B (en) | Information acquisition method, providing method, device, system, and storage medium | |
CN110019443A (en) | Non-relational database transaction methods, device and electronic equipment | |
CN108886487A (en) | Multi-modal dialog intercommunication | |
WO2016191653A1 (en) | Intelligent agent features for wearable personal communication nodes | |
CN110326290A (en) | It is watched while live content and the content of recording | |
CN103679967B (en) | Self-service dealing terminal, preposition equipment, self-service terminal system | |
CN103563344B (en) | Method and apparatus for joining a meeting using the presence status of a contact | |
KR102119404B1 (en) | Interactive information providing system by collaboration of multiple chatbots and method thereof | |
CN109671438A (en) | It is a kind of to provide the device and method of ancillary service using voice | |
CN109474843A (en) | The method of speech control terminal, client, server | |
CN110247944A (en) | Trans-regional service calling method, device, system and electronic equipment | |
CN109412821A (en) | Message treatment method and device and electronic equipment | |
CN109408213A (en) | Cotasking processing method, system and storage medium | |
CN108306851A (en) | Information acquisition method, providing method, apparatus and system | |
CN108304153A (en) | Voice interactive method and device | |
CN104820918A (en) | Intelligent transaction processing method, method and system | |
CN104122979A (en) | Method and device for control over large screen through voice | |
CN109447744A (en) | A kind of meeting affairs leasing system and meeting affairs rent method | |
CN107430852B (en) | The selectivity of the online processing of voice input is stopped in the electronic equipment for supporting voice | |
US20140254788A1 (en) | Communication between a mobile device and a call center | |
CN108320036A (en) | A kind of method, apparatus and equipment in online booking room | |
CN114245221A (en) | Interaction method and device based on live broadcast room, electronic equipment and storage medium | |
CN113285866A (en) | Information sending method and device and electronic equipment | |
KR100718011B1 (en) | System and Method for Providing Supplement Information classified by Broadcasting Program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |