Font Size: a A A

The Research And Implementation Of Transaction In Service-oriented Architecture

Posted on:2012-01-26Degree:MasterType:Thesis
Country:ChinaCandidate:Y FangFull Text:PDF
GTID:2178330335951049Subject:Computer system architecture
Abstract/Summary:PDF Full Text Request
As enterprises continue to deepen the degree of information technology, sharing of resource and information among enterprises become an inevitable trend. A bridge between enterprises needs to make this resource and information sharing become a possibility. SOA architecture is exactly what we need. More and more people are paying close attention SOA, many companies are also put it into practice. When the enterprise put it in the actual implementation, they encountered many problems, such as protection of a service transaction. Services have its own characteristics so that the traditional transaction processing cannot meet its needs, the research of the transaction processing in Service-oriented architecture become in hot. This research work is based on the major projects in Jilin Province which is service-oriented integrated development platform based on model-driven. The project uses MDA (Model Driven Architecture) technology and SOA (service oriented) architecture to build a rapid application development and application of integrated collaboration platform. The design and implementation of transaction processing system in this article is to serve the platform, it completes the transaction coordination and control work for the platform.This paper first introduces related concepts of SOA. The traditional transaction processing cannot meet the transaction processing of SOA through the analysis of characteristics of traditional transaction and the business transaction. The fundamental reason is that you need to lock resources in the traditional transaction processing. In the traditional transaction process, a transaction doesn't release the lock of resources until it completes its operations. However, in a SOA-based system, its business operations may not be completed in a short time, lock resources for a long time may cause a system crash. Therefore. the traditional ACID transaction properties for the business transaction was too strict, we need new models and protocols to deal with long transaction, while BTP is one of them. BTP protocol divides the type of the transaction into two types, one is atomic business transaction, and the other is cohesive business transaction. At the same time it will be a business transaction abstraction into a tree and then it uses a layered approach to control the transaction.As BTP protocol is a protocol neutral, it isn't only for the web service. So I make some change to it. In the design and implementation of transaction processing system. I propose some new methods to enable it to better services for the integrated development platform. Firstly. I give the strategy which eliminates negative impact on the provisional results. The strategy is as follows:In a transaction, if some participants involved in other transactions and this transaction start time later than the beginning of other matters, it cannot be committed until all other matters to be committed. When it is waiting for the other transaction is committed, the transaction enters the wait state. It eliminates negative impact on the provisional results by the serial transaction submission process. Secondly, proposing transaction node segment strategy. Using JAVA multi-threading technology enables more than one application unit can start listening thread, which mean is that an application can have multiple BTP nodes. This strategy can improve system resource utilization. Lastly, it is the autonomy strategy of non-confirmed set. In this paper, when a cohesive node to be committed, the element of non-confirmed set of it whether to be committed by its own decision according to its state at the time. If the whole transaction can be committed and it also can be committed, the element of non-confirmed set will be committed; if the whole transaction can be committed but it can't be committed, it will be cancelled; if the whole transaction can't be committed, the element of non-confirmed must be cancelled. The above strategies can improve the system of management capacity and enhance system availability.Then this paper describes how to design and implement the system. Implement the service agent method by Java reflection technology. Service Agent can add the ability of transaction processing for the actual services and don't change its business logic. As for the transaction to add a wait state, so the system in the transaction process will generate a deadlock situation. In the design and implementation of systems, it can prevent deadlock occurrence by the method of the prevention of deadlock. Before execution of a service, the system will check whether it will enter a deadlock. If there is a deadlock situation, it will not perform the service. Finally, this paper introduces the practical application of the system.
Keywords/Search Tags:SOA, Transaction processing, BTP, Web service
PDF Full Text Request
Related items