CN105656947B - A kind of methods, devices and systems that transaction middleware is interacted with third party system - Google Patents

A kind of methods, devices and systems that transaction middleware is interacted with third party system Download PDF

Info

Publication number
CN105656947B
CN105656947B CN201610190313.7A CN201610190313A CN105656947B CN 105656947 B CN105656947 B CN 105656947B CN 201610190313 A CN201610190313 A CN 201610190313A CN 105656947 B CN105656947 B CN 105656947B
Authority
CN
China
Prior art keywords
party system
communication protocol
protocol conversion
transaction middleware
adapter card
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.)
Active
Application number
CN201610190313.7A
Other languages
Chinese (zh)
Other versions
CN105656947A (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.)
Jin Zheng Science And Technology Co Ltd Of Shenzhen
Original Assignee
Jin Zheng Science And Technology Co Ltd Of Shenzhen
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 Jin Zheng Science And Technology Co Ltd Of Shenzhen filed Critical Jin Zheng Science And Technology Co Ltd Of Shenzhen
Priority to CN201610190313.7A priority Critical patent/CN105656947B/en
Publication of CN105656947A publication Critical patent/CN105656947A/en
Application granted granted Critical
Publication of CN105656947B publication Critical patent/CN105656947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention is suitable for middleware Technology field, provide the methods, devices and systems of a kind of transaction middleware and third party system, it aims to solve the problem that be adapted to reusability caused by translation-protocol one by one to every kind of third party system in the prior art not high, develops the longer problem of maintenance period.The described method includes: factory component calls adapter card to carry out first time communication Protocol Conversion to service request, and third party system is sent by the service request after first time communication Protocol Conversion, adapter card carries out second of communication Protocol Conversion to the response message that third party system returns.Technical solution of the present invention, the interaction of transaction middleware and third party system is realized based on factory component and adapter card frame, factory component uniformly carries out communication Protocol Conversion, different adapter cards matches different third party systems, so as to which the interaction and interface flexibility of transaction middleware and third party system is rapidly completed, and development and maintenance cost is reduced, reusability improves.

Description

A kind of methods, devices and systems that transaction middleware is interacted with third party system
Technical field
The present invention relates to the sides that middleware Technology field more particularly to a kind of transaction middleware are interacted with third party system Method, device and system.
Background technique
Middleware is a kind of independent system software and service routine, and Distributed Application software is by this software in difference Technology between shared resource.Middleware is located on the operating system of client/server, manages computer resource and network Communication is the software for connecting two stand-alone utilities or autonomous system.The system being connected, even if they have different connect Mouthful, but exchange information is remained to by middleware between each other.By middleware, application program may operate in multi-platform or OS ring Border middleware and operating system, database are listed as three big basic software platforms.
Currently, middleware has included communication middleware, transaction middleware, object middleware, security middleware, data Access numerous branches such as middleware.
Transaction middleware is an important branch of middleware, is used primarily in online transaction processing system (On-Line Transaction Processing, OLTP) in.With the rapid development of computer application level, information level of the enterprise Be continuously improved, corporate client be continuously increased and the emergence of new business, more and more computer application systems are to simultaneously Hair processing, the processing of key business on-line transaction, cross-platform, across wide area network and multi-data source etc., more stringent requirements are proposed, In order to solve these actual demands, the application model being born with transaction middleware for basic frame, this framework is referred to as three Layer structure.The key concept of three-decker is that user interface, service logic and data are logically divided into three using transaction middleware A different process layer.Three-decker system based on transaction middleware not only has system stabilization, the peace of mainframe Entirely, the high advantage of processing capacity, while also having that open system is at low cost, scalability is strong, the development cycle is short, easy to maintain etc. Advantage.
Transaction middleware also has the function as intermediate channel access third party system as a middle layer software. The system that third party system can be isomorphism or isomery, isomorphism system, which refers to, uses identical communication protocol and business with this middleware The system of agreement, heterogeneous system refer to the system for using different communication protocol and service protocol from this middleware.With in transaction Between part service application scale expansion, transaction middleware to dock it is also more and more with the third party system interacted, how efficiently It quickly interacts and docks with other third party systems, especially heterogeneous system, become and measure a transaction middleware function The important indicator of energy scalability.
Existing transaction middleware and third party system dock and interaction, generally use the mode for converting adaptation one by one, i.e., By writing transcode, this transaction middleware internal agreement is converted directly into third party system agreement, this conversion is integrated It provides inside transaction middleware or with plug-in mode, for every kind of third party system, requires at separately encoded and conversion Reason, it is relatively complicated, cause low reusability, exploitation and maintenance period long.
Summary of the invention
The purpose of the present invention is to provide the methods, devices and systems that a kind of transaction middleware is interacted with third party system, It aims to solve the problem that and reusability caused by translation-protocol is adapted to one by one to every kind of third party system in the prior art not high, exploitation maintenance week Phase longer problem.
The first aspect of the present invention provides a kind of method that transaction middleware is interacted with third party system, comprising:
The service request of client is sent factory component by transaction middleware, the service request be the client with The interaction request of third party system;
The factory component calls adapter card to carry out first time communication Protocol Conversion to the service request, and by institute The service request after stating first time communication Protocol Conversion is sent to third party system, so that the third party system is to described Service request is handled, and response message returns to the adapter card, the first time communication protocol by treated Convert includes by the communication Protocol Conversion inside the transaction middleware into the communication protocol of the third party system;
The adapter card carries out second of communication Protocol Conversion to the response message, and described second is communicated The response message after protocol conversion returns to the factory component, and second of communication Protocol Conversion includes by described the The communication Protocol Conversion of three method, systems is the communication protocol inside the transaction middleware;
The response message is returned to the transaction middleware by the factory component;
The response message is returned to the client by the transaction middleware.
The second aspect of the present invention is provided in a kind of system that transaction middleware is interacted with third party system, including transaction Between part, factory component and adapter card,
The transaction middleware, for sending the factory component, the service request for the service request of client For the interaction request of the client and third party system;
The factory component turns for calling the adapter card to carry out first time communication protocol to the service request It changes, and sends the third party system for the service request after the first time communication Protocol Conversion, so that described Three method, systems handle the service request, and response message returns to the adapter card by treated, described It is the logical of the third party system that first time communication Protocol Conversion, which includes by the communication Protocol Conversion inside the transaction middleware, Believe agreement;
The adapter card, for carrying out second of communication Protocol Conversion to the response message, and by described second The response message after secondary communication Protocol Conversion returns to the factory component, and second of communication Protocol Conversion includes will The communication Protocol Conversion of the third party system is the communication protocol inside the transaction middleware;
The factory component is also used to the response message returning to the transaction middleware;
The transaction middleware is also used to the response message returning to the client.
The third aspect of the present invention provides a kind of device that transaction middleware is interacted with third party system, comprising:
First package module, the interface for interacting the transaction middleware with the third party system are packaged;
Second package module, for the interface for being used for adapter card exploitation to be packaged;
The transaction middleware, for sending factory component for the service request of client, the service request is institute State the interaction request of client Yu the third party system;
The factory component, for calling adapter card to carry out first time communication Protocol Conversion to the service request, And the third party system is sent by the service request after the first time communication Protocol Conversion, so that the third party System handles the service request, and will treated response message the returns to adapter card, described first Secondary communication Protocol Conversion includes the communication protocols by the communication Protocol Conversion inside the transaction middleware for the third party system View;
The adapter card, for carrying out second of communication Protocol Conversion to the response message, and by described second The response message after secondary communication Protocol Conversion returns to the factory component, and second of communication Protocol Conversion includes will The communication Protocol Conversion of the third party system is the communication protocol inside the transaction middleware;
The factory component is also used to the response message returning to the transaction middleware;
The transaction middleware is also used to the response message returning to the client.
Existing beneficial effect is the present invention compared with prior art: being realized based on factory component and adapter card frame The interaction of transaction middleware and third party system uniformly carries out communication Protocol Conversion by factory component, passes through different adaptations Device plug-in unit matches different third party systems, need to only load and the third party when transaction middleware needs to dock third party system The corresponding adapter card of system, can be rapidly completed the interaction of transaction middleware and third party system, simultaneously because using logical Development Framework, when transaction middleware needs to dock new third party system, it is only necessary to according to connecing for communication Protocol Conversion Mouth completes the exploitation of adapter card, and is integrated into unified frame, to realize transaction middleware and third party system The interface flexibility of system, and development and maintenance cost is reduced, reusability improves.
Detailed description of the invention
Fig. 1 is the flow chart for the method that the transaction middleware that the embodiment of the present invention one provides is interacted with third party system;
Fig. 2 is the flow chart for the method that transaction middleware provided by Embodiment 2 of the present invention is interacted with third party system;
Fig. 3 is the system that the transaction middleware that the embodiment of the present invention three and example IV provide is interacted with third party system Structural schematic diagram;
Fig. 4 is the structural representation for the device that the transaction middleware that the embodiment of the present invention five provides is interacted with third party system Figure.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Realization of the invention is described in detail below in conjunction with specific attached drawing.
Embodiment one:
Fig. 1 is the flow chart for the method that the transaction middleware that the embodiment of the present invention one provides is interacted with third party system, tool Body includes step S101 to step S105, and details are as follows:
The service request of client is sent factory component by S101, transaction middleware, the service request be client with The interaction request of third party system.
Specifically, client is determined by the service logic interface for calling transaction middleware to provide according to concrete application demand The service request that justice is interacted with third party system allows transaction middleware by XA interface specification, calls xa_write interface Factory (Factory) component is sent by the service request.
XA is the Distributed Transaction processing (Distributed Transaction Process, DTP) that X/Open is organized to set up Interface specification in model between transaction middleware and database.X/Open DTP model is a kind of distributing real time system mould Type, including application program (AP, Application), task manager (TM, Transaction Manager) and resource management Device (RM, Resource Manager).In general, task manager (TM) is transaction middleware, resource manager (RM) is data Library, transaction middleware is by XA come the beginning of notification database affairs, end, submission and rollback etc..
It should be noted that the XA interface specification in the present embodiment is the rule of transaction middleware operating resource manager (RM) Model, the method that it defines a set of operating resource manager, in the XA standard base of compatible X/Open DTP model, to its into Gone and extension and be abstracted again, while compatible thread and process method of calling, and single transaction middleware node can connect it is more A resource can integrate the operation of multiple resources and complete in a transaction server, improves the place of complication system Manage efficiency.
S102, factory component call adapter card to carry out first time communication Protocol Conversion to service request, and by first Service request after secondary communication Protocol Conversion is sent to third party system, so that third party system handles service request, And response message returns to adapter card by treated, first time communication Protocol Conversion includes will be inside transaction middleware Communication Protocol Conversion is the communication protocol of third party system.
When docking third party system, due to the communication protocol of transaction middleware and the communication protocol of third party system There may be differences, it is therefore desirable to convert to communication protocol.It, will be in transaction middleware by factory component in the present embodiment The communication Protocol Conversion in portion is the communication protocol of third party system.
Specifically, factory component is completed by the SendRequeest interface for calling adapter card to provide to service request First time communication Protocol Conversion, according to the communication protocol of third party system, by the communication Protocol Conversion inside transaction middleware For the communication protocol of third party system, and third party system is sent to by the service request after first time communication Protocol Conversion is completed System, after third party system handles the service request received, returns to adapter card for response message.
Adapter card provides and carries out the interface that communication protocol is converted mutually between transaction middleware and third party system, For each third party system, there is an adapter card to be corresponding to it.
Factory component can exist in a manner of dynamic base, and adapter card is also possible to a dynamic base, by factory's group Part is loaded, and realizes the Seamless integration- with transaction middleware.Transaction middleware is when docking a new third party system, only It needs to load adapter card corresponding with the third party system, can be realized and the interface flexibility of third party system and quick friendship Mutually.And the method provided according to the prior art is needed when transaction middleware needs to dock the new third party system of one kind for this The code of a third party system customization complete set, not only the development cycle is long, and reusability is low, cannot achieve transaction middleware With the rapid abutting joint and interaction of third party system.
S103, adapter card carry out second of communication Protocol Conversion to response message, and second of communication protocol is turned Response message after changing returns to factory component, and second of communication Protocol Conversion includes by the communication Protocol Conversion of third party system For the communication protocol inside transaction middleware.
Specifically, adapter card passes through the response message that GetReply interface third party system returns, and answers this It answers information and carries out second of communication Protocol Conversion, that is, by the communication Protocol Conversion of third party system for inside transaction middleware Communication protocol, and the response message after second of communication Protocol Conversion of completion is returned into factory component.
Response message is returned to transaction middleware by S104, factory component.
Response message is returned to client by S105, transaction middleware.
In the present embodiment, the transaction middleware based on factory component and adapter card frame is handed over third party system Mutual method uniformly carries out communication Protocol Conversion by factory component, different thirds is matched by different adapter cards Method, system need to only load adapter corresponding with the third party system when transaction middleware needs to dock third party system and insert The interaction of transaction middleware and third party system can be rapidly completed in part.
Embodiment two:
Fig. 2 is the flow chart for the method that transaction middleware provided by Embodiment 2 of the present invention is interacted with third party system, tool Body includes step S201 to step S208, and details are as follows:
S201, transaction middleware load factory component and corresponding adapter card according to configuration information.
Specifically, transaction middleware on startup, the configuration of the third party system interacted as needed with transaction middleware Information loads factory component and corresponding adapter card.
The service request of client is sent factory component by S202, transaction middleware, the service request be client with The interaction request of third party system.
S203, factory component carry out service protocol conversion to service request, and service protocol is converted to transaction middleware and the To the conversion in the name of same field between three method, systems.
Service protocol conversion refers between not homologous ray, i.e., to same between the transaction middleware and third party system of the present embodiment Conversion in the name of one field, such as the same password field, system A is named as password, system B is named as PWD, In order to make can normally to be interacted between system A and system B, need to be named the password field in cross-system Conversion.
Specifically, factory component carries out service protocol conversion to the service request that receives, and service protocol conversion can be with It is realized by way of configuration service protocol conversion rule file, the specific format of service protocol transformation rule file can basis Actual needs determines, such as can be the file of XML format.Service protocol transformation rule document definition needs the field converted Conversion map relationship, factory component obtains the conversion map relationship of field by parsing this document, and according to the conversion map Relationship carries out automatic conversion to the field name of service request.
S204, factory component call adapter card to carry out first time communication Protocol Conversion to service request, and by first Service request after secondary communication Protocol Conversion is sent to third party system, so that third party system handles service request, And response message returns to adapter card by treated, first time communication Protocol Conversion includes will be inside transaction middleware Communication Protocol Conversion is the communication protocol of third party system.
S205, adapter card carry out second of communication Protocol Conversion to response message, and second of communication protocol is turned Response message after changing returns to factory component, and second of communication Protocol Conversion includes by the communication Protocol Conversion of third party system For the communication protocol inside transaction middleware.
S206, factory component carry out service protocol conversion to response message.
Specifically, factory component obtains the conversion map relationship of field by parsing this document, and according to the conversion map Relationship carries out automatic conversion to the field name of response message.
Response message is returned to transaction middleware by S207, factory component.
Response message is returned to client by S208, transaction middleware.
In the present embodiment, step S202, step S204, step S205, step S207 and step S208 show with attached drawing 1 respectively Step S101, step S102, step S103, the step S104 of example are identical with step S105, the relational language that is related to, concept or Relational language that technical characteristic etc. is related to step S101, step S102, step S103, step S104 and step S105, concept Or technical characteristic etc. is identical, is not repeated herein.
In the present embodiment, the transaction middleware based on factory component and adapter card frame is handed over third party system Mutual method is uniformly carried out communication Protocol Conversion and service protocol conversion by factory component, passes through different adapter cards Different third party systems is matched, need to only be loaded and the third party system pair when transaction middleware needs to dock third party system The interaction of transaction middleware and third party system can be rapidly completed in the adapter card answered.
Embodiment three:
Fig. 3 is the system that the transaction middleware that the embodiment of the present invention three and example IV provide is interacted with third party system Structural schematic diagram, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary transaction middleware of Fig. 3 The system interacted with third party system can be the side that the transaction middleware of the offer of previous embodiment one is interacted with third party system The executing subject of method.The system that the exemplary transaction middleware of Fig. 3 is interacted with third party system specifically include that transaction middleware 31, Factory component 32 and adapter card 33.Detailed description are as follows for each functional module:
Transaction middleware 31, for sending factory component 32 for the service request of client, which is client The interaction request at end and third party system;
Factory component 32, for calling adapter card 33 to carry out first time communication Protocol Conversion to service request, and will Service request after first time communication Protocol Conversion is sent to third party system so that third party system to service request at Reason, and response message returns to adapter card 33 by treated, first time communication Protocol Conversion includes by transaction middleware Communication Protocol Conversion inside 31 is the communication protocol of third party system;
Adapter card 33, for carrying out second of communication Protocol Conversion to response message, and by second of communication protocol Response message after conversion returns to factory component 32, and second of communication Protocol Conversion includes by the communication protocol of third party system Be converted to the communication protocol inside transaction middleware 31;
Factory component 32 is also used to returning to response message into transaction middleware 31;
Transaction middleware 31 is also used to response message returning to client.
Each module realizes respective function in the system that transaction middleware provided in this embodiment is interacted with third party system Process specifically refers to the description of aforementioned embodiment illustrated in fig. 1, and details are not described herein again.
The system interacted from the exemplary transaction middleware of above-mentioned Fig. 3 with third party system is based on work it is found that in the present embodiment The system that the transaction middleware of factory's component and adapter card frame and third party system interact, it is unified by factory component Communication Protocol Conversion is carried out, different third party systems is matched by different adapter cards, when transaction middleware needs pair Adapter card corresponding with the third party system need to be only loaded when connecing third party system, can be rapidly completed transaction middleware with The interaction of third party system.
Example IV:
Please continue to refer to Fig. 3, for ease of description, only parts related to embodiments of the present invention are shown.Fig. 3 is exemplary The system that transaction middleware is interacted with third party system can be the transaction middleware of the offer of previous embodiment two and third party is The executing subject for interactive method of uniting.Unlike embodiment three, further, in the present embodiment:
Transaction middleware 31, for sending factory component 32 for the service request of client, which is client The interaction request at end and third party system;
Factory component 32, for calling adapter card 33 to carry out first time communication Protocol Conversion to service request, and will Service request after first time communication Protocol Conversion is sent to third party system so that third party system to service request at Reason, and response message returns to adapter card 33 by treated, first time communication Protocol Conversion includes by transaction middleware Communication Protocol Conversion inside 31 is the communication protocol of third party system;
Adapter card 33, for carrying out second of communication Protocol Conversion to response message, and by second of communication protocol Response message after conversion returns to factory component 32, and second of communication Protocol Conversion includes by the communication protocol of third party system Be converted to the communication protocol inside transaction middleware 31;
Factory component 32 is also used to returning to response message into transaction middleware 31;
Transaction middleware 31 is also used to response message returning to client.
Further, transaction middleware 31 are also used to load factory component 32 and corresponding adapter according to configuration information Plug-in unit 33.
Further, factory component 32 are also used to carry out service protocol conversion to service request, which is converted to To the conversion in the name of same field between transaction middleware 31 and third party system.
Further, factory component 32 are also used to carry out service protocol conversion to response message.
Each module realizes respective function in the system that transaction middleware provided in this embodiment is interacted with third party system Process specifically refers to the description of aforementioned embodiment illustrated in fig. 2, and details are not described herein again.
The system interacted from the exemplary transaction middleware of above-mentioned Fig. 3 with third party system is based on work it is found that in the present embodiment The system that the transaction middleware of factory's component and adapter card frame and third party system interact, it is unified by factory component Communication Protocol Conversion and service protocol conversion are carried out, different third party systems is matched by different adapter cards, works as friendship Easy middleware need to only load adapter card corresponding with the third party system when needing to dock third party system, can be quickly complete At the interaction of transaction middleware and third party system.
Embodiment five:
Fig. 4 is the structural representation for the device that the transaction middleware that the embodiment of the present invention five provides is interacted with third party system Figure, for ease of description, only parts related to embodiments of the present invention are shown.The exemplary transaction middleware of Fig. 4 and third party A kind of Development Framework or platform that the device of system interaction can be that transaction middleware interacts with third party system.
The device that the exemplary transaction middleware of Fig. 4 is interacted with third party system includes the first package module 401 and the second envelope Die-filling piece 402, wherein
First package module 401, the interface for interacting transaction middleware with third party system are packaged;
Second package module 402, for the interface for being used for adapter card exploitation to be packaged.
In the device that the exemplary transaction middleware of Fig. 4 is interacted with third party system, the first package module 401 will be in transaction Between the interface that is interacted with third party system of part encapsulated, allow transaction middleware and third party system to unify to assist when docking These interfaces of tune form and connect, initialize when docking with third party system, send request, receive response, close connection etc. The invocation framenort of these operations, and the second package module 402 is encapsulated the interface for being used for adapter card exploitation, that is, The interface prototype that transaction middleware is interacted with third party system and the interface prototype for adapter card exploitation are provided, when When transaction middleware needs to dock one kind new third party system, developer only needs according to adapter card development interface Specification pays close attention to the protocol conversion between transaction middleware and third party system, can quickly develop one and be with the third party It unites corresponding adapter card;The adapter card developed in this way can be a dynamic base, when transaction middleware need with When third party system docks, it this dynamic base can be loaded by factory component, realize the adapter card and transaction middleware Seamless integration-, so as to which the rapid abutting joint and interaction of transaction middleware and third party system is neatly realized.And according to existing There is the method for technology, when transaction middleware needs to dock the new third party system of one kind, needs to determine for this third party system The code of complete set processed, not only the development cycle is long, and reusability is low, cannot achieve transaction middleware and third party system Rapid abutting joint and interaction.
Further, the interface that transaction middleware is interacted with third party system include initialization and connecting interface, closing and Interface is disconnected, request interface is sent and receives response interface, the interface for adapter card exploitation includes communication protocol Translation interface, foundation and third party system connecting interface and disconnection and third party system connecting interface.
Specifically, the interface that transaction middleware is interacted with third party system specifically can be with is defined as:
Initialization and connecting interface:
int(*xa_open_entry)();
It closes and disconnects interface:
int(*xa_close_entry)();
Send request interface:
int(*xa_write_entry)(void*handle,char*str,int len);
Receive response interface:
int(*xa_read_entry)(void*handle,char**str,int*len)。
Specifically, the interface for adapter card exploitation specifically can be with is defined as:
It is the communication Protocol Conversion interface of third party system communication protocol by the communication Protocol Conversion inside transaction middleware:
SendRequest();
It is the communication Protocol Conversion interface inside transaction middleware by the communication Protocol Conversion of third party system communication protocol:
GetReply();
It establishes and third party system connecting interface:
Open();
It disconnects and third party system connecting interface:
Close()。
In the device that the exemplary transaction middleware of Fig. 4 is interacted with third party system, transaction middleware, factory component and suitable Detailed description are as follows for the major function of orchestration plug-in unit:
Transaction middleware for receiving the service request of client transmission, and sends factory component for service request, should Service request is the interaction request of client and third party system;
Factory component, for calling adapter card to carry out first time communication Protocol Conversion to service request, and by first Service request after secondary communication Protocol Conversion is sent to third party system, so that third party system handles service request, And response message returns to adapter card by treated, first time communication Protocol Conversion includes will be inside transaction middleware Communication Protocol Conversion is the communication protocol of third party system;
Adapter card for carrying out second of communication Protocol Conversion to response message, and second of communication protocol is turned Response message after changing returns to factory component, and second of communication Protocol Conversion includes by the communication Protocol Conversion of third party system For the communication protocol inside transaction middleware;
Factory component is also used to response message returning to transaction middleware;
Transaction middleware is also used to response message returning to client.
In the device that transaction middleware provided in this embodiment is interacted with third party system, transaction middleware, factory component The process that respective function is realized with adapter card specifically refers to the description of aforementioned embodiment illustrated in fig. 1, no longer superfluous herein It states.
The device interacted from the exemplary transaction middleware of above-mentioned Fig. 4 with third party system is based on work it is found that in the present embodiment The device that the transaction middleware of factory's component and adapter card frame and third party system interact is unified by factory component Communication Protocol Conversion is carried out, different third party systems is matched by different adapter cards, when transaction middleware needs pair Adapter card corresponding with the third party system need to be only loaded when connecing third party system, can be rapidly completed transaction middleware with The interaction of third party system, simultaneously because needing to dock new third party system in transaction middleware using general Development Framework When system, it is only necessary to complete the exploitation of adapter card according to the interface of communication Protocol Conversion, and be integrated into unified frame i.e. Can, to realize the interface flexibility of transaction middleware and third party system, and reduce development and maintenance cost, reusability mentions It is high.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment What is stressed is the difference from other embodiments, and same or similar part refers to each other between each embodiment ?.For device class embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
It is worth noting that, included modules are only drawn according to function logic in above-mentioned apparatus embodiment Point, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional module is specific Title is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It will appreciated by the skilled person that all or part of the steps in realization the various embodiments described above method is can It is completed with instructing relevant hardware by program, corresponding program can store in a computer-readable storage medium In, the storage medium, such as ROM/RAM, disk or CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of method that transaction middleware is interacted with third party system characterized by comprising
The service request of client is sent factory component by transaction middleware, and the service request is the client and third The interaction request of method, system;
The factory component calls adapter card to carry out first time communication Protocol Conversion to the service request, and by described the The service request after communication Protocol Conversion is sent to third party system, so that the third party system is to the business Request is handled, and response message returns to the adapter card, the first time communication Protocol Conversion by treated Communication protocol including by the communication Protocol Conversion inside the transaction middleware being the third party system;
The adapter card carries out second of communication Protocol Conversion to the response message, and by second of the communication protocol The response message after conversion returns to the factory component, and second of communication Protocol Conversion includes by the third party The communication Protocol Conversion of system is the communication protocol inside the transaction middleware;Transaction middleware docks new third party system When, the exploitation of adapter card is completed according to the interface of communication Protocol Conversion, and be integrated into unified frame;The frame is work The frame of factory's component and adapter card composition;
The response message is returned to the transaction middleware by the factory component;
The response message is returned to the client by the transaction middleware.
2. the method that transaction middleware according to claim 1 is interacted with third party system, which is characterized in that the transaction Before the service request of client is sent factory component by middleware, the method also includes:
The transaction middleware loads factory component and corresponding adapter card according to configuration information.
3. the method that transaction middleware according to claim 1 or 2 is interacted with third party system, which is characterized in that described Before factory component calls adapter card to carry out first time communication Protocol Conversion to the service request, the method is also wrapped It includes:
The factory component carries out service protocol conversion to the service request, and the service protocol is converted among the transaction To the conversion in the name of same field between part and the third party system.
4. the method that transaction middleware according to claim 3 is interacted with third party system, which is characterized in that the factory Before the response message is returned to the transaction middleware by component, the method also includes:
The factory component carries out the service protocol conversion to the response message.
5. the system that a kind of transaction middleware is interacted with third party system, which is characterized in that the system comprises transaction middleware, Factory component and adapter card,
The transaction middleware, for sending the factory component for the service request of client, the service request is institute State the interaction request of client and third party system;
The factory component, for calling the adapter card to carry out first time communication Protocol Conversion to the service request, And the third party system is sent by the service request after the first time communication Protocol Conversion, so that the third party System handles the service request, and will treated response message the returns to adapter card, described first Secondary communication Protocol Conversion includes the communication protocols by the communication Protocol Conversion inside the transaction middleware for the third party system View;
The adapter card, for carrying out second of communication Protocol Conversion to the response message, and it is logical by described second The response message after letter protocol conversion returns to the factory component, and second of communication Protocol Conversion includes will be described The communication Protocol Conversion of third party system is the communication protocol inside the transaction middleware;Transaction middleware docks new third When method, system, the exploitation of adapter card is completed according to the interface of communication Protocol Conversion, and is integrated into unified frame;The frame Frame is factory component and the frame that adapter card forms;
The factory component is also used to the response message returning to the transaction middleware;
The transaction middleware is also used to the response message returning to the client.
6. the system that transaction middleware according to claim 5 is interacted with third party system, which is characterized in that the transaction Middleware is also used to load factory component and corresponding adapter card according to configuration information.
7. the system that transaction middleware according to claim 5 or 6 is interacted with third party system, which is characterized in that described Factory component is also used to carry out service protocol conversion to the service request, and the service protocol is converted among the transaction To the conversion in the name of same field between part and the third party system.
8. the system that transaction middleware according to claim 7 is interacted with third party system, which is characterized in that the factory Component is also used to carry out the service protocol conversion to the response message.
9. the device that a kind of transaction middleware is interacted with third party system, which is characterized in that described device includes:
First package module, the interface for interacting the transaction middleware with the third party system are packaged;
Second package module, for the interface for being used for adapter card exploitation to be packaged;
The transaction middleware, for sending factory component for the service request of client, the service request is the visitor The interaction request at family end and the third party system;
The factory component, for calling adapter card to carry out first time communication Protocol Conversion to the service request, and will The service request after the first time communication Protocol Conversion is sent to the third party system, so that the third party system The service request is handled, and response message returns to the adapter card by treated, the first time is logical Letter protocol conversion includes the communication protocol by the communication Protocol Conversion inside the transaction middleware for the third party system;
The adapter card, for carrying out second of communication Protocol Conversion to the response message, and it is logical by described second The response message after letter protocol conversion returns to the factory component, and second of communication Protocol Conversion includes will be described The communication Protocol Conversion of third party system is the communication protocol inside the transaction middleware;Transaction middleware docks new third When method, system, the exploitation of adapter card is completed according to the interface of communication Protocol Conversion, and is integrated into unified frame;The frame Frame is factory component and the frame that adapter card forms;
The factory component is also used to the response message returning to the transaction middleware;
The transaction middleware is also used to the response message returning to the client.
10. the device that transaction middleware according to claim 9 is interacted with third party system, which is characterized in that the friendship The interface that easy middleware is interacted with the third party system includes initialization and connecting interface, closes and disconnect interface, hair It send request interface and receives response interface, the interface for adapter card exploitation includes that first time communication Protocol Conversion connects Mouth, second of communication Protocol Conversion interface establish third party system connecting interface and disconnect third party system connecting interface.
CN201610190313.7A 2016-03-30 2016-03-30 A kind of methods, devices and systems that transaction middleware is interacted with third party system Active CN105656947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610190313.7A CN105656947B (en) 2016-03-30 2016-03-30 A kind of methods, devices and systems that transaction middleware is interacted with third party system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610190313.7A CN105656947B (en) 2016-03-30 2016-03-30 A kind of methods, devices and systems that transaction middleware is interacted with third party system

Publications (2)

Publication Number Publication Date
CN105656947A CN105656947A (en) 2016-06-08
CN105656947B true CN105656947B (en) 2019-02-01

Family

ID=56496526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610190313.7A Active CN105656947B (en) 2016-03-30 2016-03-30 A kind of methods, devices and systems that transaction middleware is interacted with third party system

Country Status (1)

Country Link
CN (1) CN105656947B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107677301B (en) * 2017-10-10 2019-11-05 四川国信慧通电气技术有限公司 Monitoring device detection method and device
CN109885334B (en) * 2018-12-30 2022-10-04 贝壳技术有限公司 Version compatible system and message sending and receiving method
CN111124813A (en) * 2019-12-04 2020-05-08 山东浪潮人工智能研究院有限公司 Monitoring management system based on autonomous controllable software and hardware
CN112764995B (en) * 2021-01-26 2023-04-07 山东云海国创云计算装备产业创新中心有限公司 Server hardware resource monitoring method, device and medium
CN113556392B (en) * 2021-07-19 2023-11-14 广州市百果园网络科技有限公司 Communication system, method, apparatus and storage medium
CN113760577B (en) * 2021-08-04 2024-04-19 广东能龙教育股份有限公司 Dynamic connection answering device, processing method, control device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488192A (en) * 2009-02-24 2009-07-22 诚迈科技(南京)有限公司 Large-scale network deployment collocation method model of RFID reading device
CN102025727A (en) * 2010-11-23 2011-04-20 广州市轩辕网络科技有限公司 Integrated pushing system and method for collecting and accessing multiple application systems
CN104601522A (en) * 2013-10-30 2015-05-06 中国移动通信集团北京有限公司 Method, device and system for realizing interaction between mobile client and service system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488192A (en) * 2009-02-24 2009-07-22 诚迈科技(南京)有限公司 Large-scale network deployment collocation method model of RFID reading device
CN102025727A (en) * 2010-11-23 2011-04-20 广州市轩辕网络科技有限公司 Integrated pushing system and method for collecting and accessing multiple application systems
CN104601522A (en) * 2013-10-30 2015-05-06 中国移动通信集团北京有限公司 Method, device and system for realizing interaction between mobile client and service system

Also Published As

Publication number Publication date
CN105656947A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105656947B (en) A kind of methods, devices and systems that transaction middleware is interacted with third party system
CN100483352C (en) IDE calling device and calling method therefor
CN109815025B (en) Service model calling method, device and storage medium
US20120159369A1 (en) Framework for web services exposing line of business applications
CN110716748A (en) Service processing method and device, computer readable medium and electronic equipment
KR20140047580A (en) Method and system for synchronization mechanism on multi-server reservation system
KR100880536B1 (en) Open framework system for heterogeneous computing and service integration
US20060179125A1 (en) System and method for exposing a J2EE application server as a web service transaction participant
US10498854B2 (en) Method and controller for clustering applications in a software-defined network
CN113032166B (en) Inter-core communication method, processor, inter-core communication system, and computer-readable storage medium
CN106027534A (en) System for implementing financial message processing based on Netty
CN110231980A (en) Processing method, device and the transaction processor of distributed transaction
Bordbar et al. On behavioural model transformation in web services
CN109819020A (en) Third-party platform based on configurationization logs in interconnection method, storage medium
CN106909368B (en) Service-side service layer logic architecture for realizing rapid service development
Gomaa et al. Reusable component interconnection patterns for distributed software architectures
JP2012528367A (en) Method and associated system for adapting data in a data transmission system
Blanchet et al. Supporting adaptive web-service orchestration with an agent conversation framework
KR101660028B1 (en) Method and apparatus for creating bridging component between hla-dds
CN105721278A (en) Question-answer mechanism based on instant communication
CN105824712B (en) A kind of execution method and apparatus of service logic
CN113467918A (en) Workflow configuration method and device of distributed real-time payment system
US9092779B2 (en) Heuristics processing
CN114500646B (en) Decentralizing ESB cloud platform system and service calling method thereof
Singh et al. An integrated approach for implementing a distribution automation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant