CN1332309C - Transaction processing system under Web service environment - Google Patents

Transaction processing system under Web service environment Download PDF

Info

Publication number
CN1332309C
CN1332309C CNB2005100294909A CN200510029490A CN1332309C CN 1332309 C CN1332309 C CN 1332309C CN B2005100294909 A CNB2005100294909 A CN B2005100294909A CN 200510029490 A CN200510029490 A CN 200510029490A CN 1332309 C CN1332309 C CN 1332309C
Authority
CN
China
Prior art keywords
component
transaction
affairs
assembly
client
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.)
Expired - Fee Related
Application number
CNB2005100294909A
Other languages
Chinese (zh)
Other versions
CN1737763A (en
Inventor
饶若楠
戚正伟
吴永华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CNB2005100294909A priority Critical patent/CN1332309C/en
Publication of CN1737763A publication Critical patent/CN1737763A/en
Application granted granted Critical
Publication of CN1332309C publication Critical patent/CN1332309C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention a transaction processing system under a Web service environment, which belongs to the technical field of the network, wherein a client application sends a new transaction to a service coordination component through a client component, the service coordination component creates a corresponding transaction coordinator for the new transaction and saves the new transaction through a coordinator component, and finally, a new transaction coordination context component is sent back to the client component, and thereafter, client applications and Web services which take part in the transaction are registered to a register service component through the transaction coordination context component, the client application requires the transaction submission or termination to the client component which calls a service completion component to realize the submission or the intermediary of the transaction, and finally, the service completion component calls a service participation component through the coordinator component to submit or terminate all participants take part in the transaction. The transaction processing of the present invention can be implicitly transmitted among a plurality of Web services, and thus, the work of system integration programming persons is simplified and reduced.

Description

Transacter under the Web service environment
Technical field
What the present invention relates to is a kind of system of networking technology area, specifically is the transacter under a kind of Web service environment.
Background technology
Issued transaction is the combination of sequence of operations, these discrete operations make system from the state evolution of a unanimity to another consistent state.The operation that these are discrete or all successes, or all failures.And if the affairs failure, system can roll back to the state of predictable unanimity.Issued transaction is to simplify programmed logic, makes up the basic technology of reliable Distributed Application.The application program that Web service can be used under the various environment is integrated, from simple data sharing to large-scale ecommerce and moneytary operations.Web service provides interoperability between application program based on the standard of unified XML at Fabric Interface between the application program, thus these application programs can between the different enterprises, realize the seamless communication of cross-platform and language between the different platform.The Web service technology is one of mainstream technology of structure Distributed Calculation, but does not also well support issued transaction.If Web service is used to industry, must guarantee that they move in transaction environment in, work in reliable and predictable mode.But in traditional issued transaction, Web service is merely able to use the affairs that are independent of other assemblies---rule that realizes with the affairs bottom of obeying it that divide in the method scope of Web service---and physically can not leave Web service or enter another Web service.And, traditional issued transaction must satisfy the attribute of affairs ACID, thereby need in the process that affairs continue, lock and prevent that other affairs from conducting interviews to this resource the resource that participates in affairs, but the affairs duration under the Web service environment may be longer than Traditional affair far away, can't bear the high cost of long-time resource lock, need the ACID attribute of affairs be relaxed, reach in logic affairs ACID attribute by other modes such as affairs compensation and so on.
Through literature search, do not find identical with theme of the present invention or similar bibliographical information so far as yet to prior art.
Summary of the invention
The objective of the invention is at the limitation of Traditional affair processing under the Web service environment, transacter under a kind of Web service environment is provided, make its support that issued transaction can be provided the transactional Distributed Calculation of crossing over a plurality of Web services, use Web service can move in a kind of predictable mode as the operation system of Distributed Calculation.
The present invention is achieved by the following technical solutions, the present invention includes: telegon assembly, coordination service assembly, activate serviced component, registration service assembly, participate in serviced component, finish serviced component, transaction coordination context component and client component.Wherein the transaction coordination context component is the message of an XML form, and remaining assembly will be disposed as Web service, and they all are the necessary component of system; Client component then is that for convenience application program is initiated and submitted affairs to and the calling interface that provides, is the expansion of system.Client application is initiated new affairs by client component to the coordination service components request, the coordination service assembly is that new affairs are created a correspondent transaction telegon and preserved by the telegon assembly, and the coordination service assembly can be created a new transaction coordination context component and return this new transaction coordination context component and give client component simultaneously to activating the serviced component request.After this client application and the Web service that participate in affairs all can be registered to the registration service assembly by this transaction coordination context component.Last client application can require to carry out affairs submission or termination to client component, client component then calls finishes submission or the termination that serviced component carries out affairs, finally finishes serviced component and can participate in serviced component by the telegon component call and all participants that participate in these affairs are submitted to or terminate.
Described telegon assembly is preserved a telegon example for each activity, and preservation affairs participant's tabulation, acceptance are finished the request of submission of service request affairs or rollback and called the service of participation the participant is submitted to or rollback.
Described coordination service assembly is accepted the request of client component and is created the correspondent transaction telegon for the new activity of initiating, and is responsible for preserving and management transaction telegon assembly.The coordination service assembly also is responsible for creating new coordination context to activating services request.
Described activation serviced component is accepted the request of client component and is created new transaction coordination context component when new affairs are initiated; This new transaction coordination context component will return to the telegon assembly and preserve, and after this each ingredient of system can obtain this new transaction coordination context component by the ID of affairs from the telegon assembly.
Described registration service assembly allows Web service to be registered in the transaction coordination context component as the affairs participant, and participant's the address and the information such as matchmaking protocol of use will be stored in the telegon assembly.
Described participation serviced component is used to respond the transactional operation requests that the telegon assembly is initiated, and the correspondent transaction participant is submitted to or transactional operation such as rollback according to the request of telegon assembly.
The described serviced component of finishing is used to receive and handle the transactional request that requires affairs to submit to or stop that client component is initiated; Finish serviced component and will initiate transactions requests, and finally finish the correspondent transaction request by participating in service to the telegon assembly of correspondence.
Described transaction coordination context component is similar to the transaction context in the Traditional affair processing, preserved relevant informations such as affairs participant and affairs coordinator, the behavior that each ingredient of system carries out the feasible a plurality of Web services that distribute of communication by the transaction coordination context component focuses in the same transaction environment.
Described client component, the request of accepting client applications is initiated, is terminated or submits affairs to.The application programming interfaces that client should be provided for dividing transaction boundaries call for CLIENT PROGRAM, thereby simplify the coding work of transactional Web service application system.
Compare with the Traditional affair processing, thereby the present invention can adjust the behavior that the context of affairs will be distributed in the participant of a plurality of Web services and gather together, and further, by guaranteeing that each participant agrees fully that all each comfortable operation of coordinating to carry out in context component produces expected result, perhaps when having different opinions cancel all executed operation to get back to expected still be consistent result.
The present invention can provide the support of issued transaction to the transactional Distributed Calculation of crossing over a plurality of Web services, can be by expansion Traditional affair disposal system, traditional issued transaction is integrated to the Web service environment, thus original service inner use Web service that Traditional affair handles can be with the support of issued transaction from single service internal extended to crossing over a plurality of affairs.Especially, the present invention has expanded the JTA affairs under the J2EE environment, and the feasible Web service that has been deployed on the J2EE platform can be supported the affairs of Web service under the situation that need not revise code.This is to realize by specific JTA affairs being exported to the Web service environment and the affairs under the Web service environment are imported to the J2EE environment from the J2EE environment.
The Handler of the present invention by expansion Axis makes propagating that the transaction coordination context component can implicit expression between a plurality of Web services, thereby affairs can be carried out the propagation of implicit expression between a plurality of Web services, and need not the propagation that Web service transaction coordination context component is controlled in extra programming, thereby simplify also mitigation system integrated programming personnel's work.
Description of drawings
Fig. 1 is a system architecture synoptic diagram of the present invention.
The actual precedence diagram that calls that Fig. 2 handles for processing transactions of the present invention.
Embodiment
As shown in Figure 1, the present invention includes: telegon assembly, coordination service assembly, activate serviced component, registration service assembly, participate in serviced component, finish serviced component, transaction coordination context component and client component.Client application is initiated new affairs by client component to the coordination service components request, the coordination service assembly is that new affairs are created a correspondent transaction telegon and preserved by the telegon assembly, and the coordination service assembly can be created a new transaction coordination context component and return this new transaction coordination context component and give client component simultaneously to activating the serviced component request.After this client application and the Web service that participate in affairs all can be registered to the registration service assembly by this transaction coordination context component.Last client application can require to carry out affairs submission or termination to client component, client component then calls finishes submission or the termination that serviced component carries out affairs, finally finishes serviced component and can participate in serviced component by the telegon component call and all participants that participate in these affairs are submitted to or terminate.
Each assembly of the present invention is the center with the coordination service assembly, each participant at the affairs of participation activity adjusts the transaction coordination context component with the communication between the corresponding telegon, thereby make affairs can cross over a plurality of Web services, realize the affairs support under the Web service environment.
These serviced components of whole Web service transacter can be deployed on the same machine, also can be deployed on the different machines.They itself also are some Web services, use the mode identical with common Web service to visit.Client component then is simple application programming interfaces, can be used as built-in function and issues, and application program only need simply be called and get final product.
Activating serviced component provides createCoordinationContext operation response coordination service components request to create the message " createCoordinationContext " of new transaction coordination context component.
The registration service assembly provides registerParticipant operation response telegon components request registration participant's message " registerParticipant ".
The message " createCoordinationContext " that the coordination service assembly provides the requirement of getCoordinationContext operation customer in response end assembly to create a new telegon, the message " createCoordinator " that provides the getCoordinator operation to be used for a new telegon of customer in response end assembly requirement establishment.
The telegon assembly then provides the getCoordinationContext operation to obtain to coordinate context component for client and participant; Provide registerParticipant to be registered in the current transaction environment for the participant; Provide getTransactionID to return the ID of current affairs; Provide commit and rollback operation to call, to submit to or affairs of rollback for finishing serviced component.
Finishing serviced component provides commit and rollback operation to call for client component to submit to or affairs of rollback, and concrete operation will be called the operation of response of the telegon assembly of affairs correspondence again.
Participate in serviced component commit be provided, prepare, the rollback operation is for the telegon component call, be used for to concrete affairs participant require to submit to, preparation or rollback.
Client component then provides the operation of beginTransaction, cancelTransaction and confirmTransaction simply to initiate and finish affairs for client applications.
As shown in Figure 2, the invoked procedure of the issued transaction of a reality of the present invention, client sends " beginTransaction " message request to client component and initiates new affairs, client component then sends a new telegon of message request establishment of " getCoordinator " to the coordination service assembly, the coordination service assembly is to carry out index by affairs ID in a new affairs new telegon of establishment and the Hash table that is kept at the telegon assembly; After new telegon is created, the coordination service assembly is again to activating new transaction coordination context component of message requirement establishment that serviced component sends " createCoordinationContext ", the activation serviced component is then created a new context component and is placed on and returns to the coordination service assembly in " CoordinationContext ", final telegon context component can return to client component by message " getCoordinatorResponse ", and the message that client component then sends one " transactionBegun " informs that the client application affairs create.
After this call a businesslike web service at every turn, all at first become the participant to the message request registration that the registration service assembly sends " registerParticipant " by this service, the registration service assembly will be preserved participant's tabulation by telegon, finally return " registerResponse " message and give the participant.
Finally, client application selects to submit to affairs, client component sends " submission " message to finishing serviced component, the service of finishing further sends " submission " message to the telegon assembly, the telegon assembly sends " submission " message to participating in serviced component again, final participation serviced component returns " submitting response to " message and gives the telegon assembly after finishing the affairs submission, the telegon assembly returns to client component with " submission response " message by finishing serviced component again.Finally application program judges according to the message of " submitting response to " of obtaining from client component whether affairs are successful.
Compare with traditional distributed transaction technology, the present invention has used one to be similar to the contextual transaction coordination context component of Traditional affair, and increased activation serviced component, registration service assembly, participated in serviced component, finished that serviced component is created and management transaction is coordinated context component, thereby the affairs participant's that distributes behavior has been focused on the transaction environment of transaction coordination context component representative.

Claims (10)

1, transacter under a kind of Web service environment, comprise: the telegon assembly, the coordination service assembly, transaction coordination context component and client component, it is characterized in that, also comprise: activate serviced component, the registration service assembly, participate in serviced component, finish serviced component, client component then is that for convenience application program is initiated and submitted affairs to and the calling interface that provides, client application is initiated new affairs by client component to the coordination service components request, the coordination service assembly is that new affairs are created a correspondent transaction telegon and preserved by the telegon assembly, the coordination service assembly can be created a new transaction coordination context component and return this new transaction coordination context component to client component simultaneously to activating the serviced component request, after this client application and the Web service that participate in affairs are all registered to the registration service assembly by this transaction coordination context component, client application requires to carry out affairs submission or termination to client component, client component then calls finishes submission or the termination that serviced component carries out affairs, finally finishes serviced component and can participate in serviced component by the telegon component call and all participants that participate in these affairs are submitted to or terminate.
2, the transacter under the Web service environment according to claim 1, it is characterized in that, described telegon assembly is preserved a telegon example for each activity, and preservation affairs participant's tabulation, acceptance are finished the request of submission of service request affairs or rollback and called the service of participation the participant is submitted to or rollback.
3, the transacter under the Web service environment according to claim 1, it is characterized in that, described coordination service assembly, accept the request of client component and create the correspondent transaction telegon for the new activity of initiating, and be responsible for preserving and management transaction telegon assembly, the coordination service assembly also is responsible for creating new coordination context to activating services request.
4, the transacter under the Web service environment according to claim 1, it is characterized in that, described activation serviced component, when new affairs are initiated, accept the request of client component and create new transaction coordination context component, this new transaction coordination context component will return to the telegon assembly and preserve, and after this each ingredient of system can obtain new transaction coordination context component by the ID of affairs from the telegon assembly.
5, the transacter under the Web service environment according to claim 1, it is characterized in that, described registration service assembly, allow Web service to be registered in the transaction coordination context component as the affairs participant, the matchmaking protocol information of participant's address and use will be stored in the telegon assembly.
6, the transacter under the Web service environment according to claim 1, it is characterized in that, described participation serviced component, be used to respond the transactional operation requests that the telegon assembly is initiated, the correspondent transaction participant submitted to or the operation of rollback transactional according to the request of telegon assembly.
7, the transacter under the Web service environment according to claim 1 is characterized in that, the described serviced component of finishing is used to receive and handle the transactional request that requires affairs to submit to or stop that client component is initiated; Finish serviced component and will initiate transactions requests, and finally finish the correspondent transaction request by participating in service to the telegon assembly of correspondence.
8, according to the transacter under claim 1 or the 3 or 4 described Web service environment, it is characterized in that, described transaction coordination context component, preserved affairs participant and affairs coordinator information, the behavior that each ingredient of system carries out the feasible a plurality of Web services that distribute of communication by the transaction coordination context component focuses in the same transaction environment.
9, according to the transacter under claim 1 or the 3 or 4 described Web service environment, it is characterized in that described transaction coordination context component is the message of an XML form.
10, the transacter under the Web service environment according to claim 1, it is characterized in that, described client component, the request of accepting client applications is initiated, is terminated or submits affairs to, the application programming interfaces that client is provided for dividing transaction boundaries call for CLIENT PROGRAM, thereby simplify the coding work of transactional Web service application system.
CNB2005100294909A 2005-09-08 2005-09-08 Transaction processing system under Web service environment Expired - Fee Related CN1332309C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100294909A CN1332309C (en) 2005-09-08 2005-09-08 Transaction processing system under Web service environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100294909A CN1332309C (en) 2005-09-08 2005-09-08 Transaction processing system under Web service environment

Publications (2)

Publication Number Publication Date
CN1737763A CN1737763A (en) 2006-02-22
CN1332309C true CN1332309C (en) 2007-08-15

Family

ID=36080566

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100294909A Expired - Fee Related CN1332309C (en) 2005-09-08 2005-09-08 Transaction processing system under Web service environment

Country Status (1)

Country Link
CN (1) CN1332309C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631033B (en) * 2008-07-14 2013-02-27 中兴通讯股份有限公司 Method, system, server and client for calling remote component

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225656A1 (en) * 2003-05-07 2004-11-11 Panacea Corporation Web services method and system
US20050015491A1 (en) * 2003-05-16 2005-01-20 Markel Corporation Systems, methods, and articles of manufacture for dynamically providing web services
US20050144301A1 (en) * 2003-12-26 2005-06-30 Park Chan K. System for aborting web services automatically and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040225656A1 (en) * 2003-05-07 2004-11-11 Panacea Corporation Web services method and system
US20050015491A1 (en) * 2003-05-16 2005-01-20 Markel Corporation Systems, methods, and articles of manufacture for dynamically providing web services
US20050144301A1 (en) * 2003-12-26 2005-06-30 Park Chan K. System for aborting web services automatically and method thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Web服务事务处理系统的研究与实现 尹瑞,葛声,马殿富,北京航空航天大学学报,第31卷第4期 2005 *
Web服务事务处理系统的研究与实现 尹瑞,葛声,马殿富,北京航空航天大学学报,第31卷第4期 2005;基于Web服务的EDI系统的事务处理 闫成芳,袁捷,计算机应用与软件,第22卷第7期 2005;基于重写逻辑的Web服务事务处理形式化描述 戚正伟,毛宏燕,尤晋元,计算机学报,第28卷第4期 2005 *
基于Web服务的EDI系统的事务处理 闫成芳,袁捷,计算机应用与软件,第22卷第7期 2005 *
基于重写逻辑的Web服务事务处理形式化描述 戚正伟,毛宏燕,尤晋元,计算机学报,第28卷第4期 2005 *

Also Published As

Publication number Publication date
CN1737763A (en) 2006-02-22

Similar Documents

Publication Publication Date Title
CN100437545C (en) Automatic and dynamic provisioning of databases
US6275843B1 (en) Method and apparatus for processing multiple service requests within a global transaction by a single server application program instance
AU2006233229B2 (en) Service broker integration layer for supporting telecommunication client service requests
JP5898240B2 (en) Method and system for providing a session in a heterogeneous environment
US20130046877A1 (en) Routing of pooled messages via an intermediary
CN108701157A (en) Guaranteed submission result in distributing real time system system
CN101739300A (en) Method and system for inter-process communication of multimedia terminal
CN102136976B (en) Machine transaction control method, device and system
CN100561920C (en) Web service transacter and processing method
CN110231980A (en) Processing method, device and the transaction processor of distributed transaction
CN109844731A (en) Distributing distributed data base consistency
CN106251071A (en) A kind of cloud workflow implementing method supporting multiple engine
WO2019024679A1 (en) Method for upgrading network function and upgrade management entity
CN112866421A (en) Intelligent contract operation method and device based on distributed cache and NSQ
US7328222B2 (en) Method and apparatus for preserving data coherency in a database by generating a command object that includes instructions for writing a data record to a local cache
US20020107967A1 (en) Method and apparatus for conducting a transaction between homogeneous and/or heterogeneous transaction processing systems using asynchronous pull of a transaction transfer
JP3574030B2 (en) Computing device, operation method, and program storage device
CN1332309C (en) Transaction processing system under Web service environment
Erven et al. The web services-businessactivity-initiator (ws-ba-i) protocol: an extension to the web services-businessactivity specification
CN114254036A (en) Data processing method and system
JPH1021083A (en) Data processing method in network-connected computer system
CN101316179A (en) Method, server and terminal for setting conversation role
CN116442214A (en) Service parallel processing method, device, equipment and medium for robot
KR100233238B1 (en) Two way authentication communication method using multithread in distributed transaction system
Kratz Protocols for long running business transactions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070815

Termination date: 20100908