Distributed transaction creation method
The distributed transaction creation method provided by the invention comprises the following steps of: creating a transaction group, namely calling TxManager to create a transaction group object before a transaction initiator starts to execute a business code, and obtaining a transaction identifier...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The distributed transaction creation method provided by the invention comprises the following steps of: creating a transaction group, namely calling TxManager to create a transaction group object before a transaction initiator starts to execute a business code, and obtaining a transaction identifier GroupId; the step of adding the transaction group refers to the operation of notifying the transaction information to the TxManager after the participant executes the business method. According to the method, standard support of TX-LCN is provided, and both a transaction initiator and a participant belong to TxClient. And the TxManager is used as a control party of the distributed transaction to control the whole transaction.
本发明提供的一种分布式事务创建方法包括:创建事务组,是指在事务发起方开始执行业务代码之前先调用TxManager创建事务组对象,拿到事务标识GroupId的过程;加入事务组,为添加事务组是指参与方在执行完业务方法以后,将事务信息通知给TxManager的操作。提供了TX-LCN的标准支持,事务发起方和参与方都属于TxClient。TxManager作为分布式事务的控制方,控制整个事务。 |
---|