Method, device and system for information interaction between heterogeneous systems
By using heterogeneous systems information interaction method in the power grid scheduling system and using message queue clusters to convert communication messages formats, the problem of difficulty in information interaction between heterogeneous systems is solved, information sharing and system integration are realized, and the communication process is simplified. .
Patent Information
- Application Number
- CN202210085833.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2042-01-25
AI Technical Summary
Difficult information interaction between heterogeneous systems in existing power grid scheduling systems leads to problems of information islands and information barriers. Existing solutions such as files, databases, protocol messages and ESB methods have low real-time, poor scalability and high complexity. The problem.
Using information interaction method between heterogeneous systems, the communication message is obtained through the first heterogeneous system and its format is converted into a preset unified message format, and sent to the message queue cluster. The second heterogeneous system receives and converts it into its communication format. , realize information interaction between heterogeneous systems, avoiding additional development and transformation of the original system.
It effectively solves the information chimney and information barrier problems of information interaction between heterogeneous systems, realizes information sharing, simplifies the communication process, and ensures the continuous integration and synergistic effect of heterogeneous systems.
Smart Images

Figure CN114501347B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power grid dispatching and relates to a method, device and system for information interaction between heterogeneous systems. Background Art
[0002] In the early design of internal and external systems of power grid control centers, most systems will adopt a monolithic architecture application, which can reduce the difficulty of system development and deployment. Each system will adopt a different message middleware technical architecture route. However, with the continuous expansion of business volume and the continuous increase of systems, each system gradually forms an information island, and interaction between them becomes extremely difficult. The existing solutions mainly include the following methods: file-based or database-based, protocol message-based, unified platform-based, and ESB (Enterprise Service Bus)-based.
[0003] The file or database-based approach is to share information through shared files or public databases. It has long been an effective way to share information between systems, and its file sharing approach is simple and clear. However, it is only suitable for business scenarios where information changes slowly, the size of a single file is small, and the real-time requirements are not high. Compared with the file approach, the database approach is simpler, more flexible, and more scalable. However, this approach is not very real-time and is more suitable for information sharing of structured data, but it is difficult to effectively support semi-structured data and unstructured data. The protocol message-based approach can achieve the sharing of certain information, and the two systems do not need to use additional hardware equipment. They only need to use the corresponding protocol communication and message encoding and decoding software modules to achieve information interaction. However, it is limited by the regulations in terms of data interaction scope, data type, and data capacity. The expansion and maintenance costs of new functions and new data types are high, and it is difficult to support the growing demand for business information access and application function sharing.
[0004] With the continuous improvement of the automation level of the power dispatching system, the transformation from the original independent construction of the business system to the construction of a unified support platform has been gradually completed, forming an interactive mode based on a unified platform. However, there are still a large number of business application systems outside the dispatching control system. These systems often use different message buses and service frameworks. It is difficult for information to be interoperable and services to be shared between these systems. The technical difficulties of connecting various business systems have not been completely solved. In the ESB (Enterprise Service Bus)-based approach, the enterprise service bus is an important means of building a service-oriented architecture that can support services, messages, and event-based interactions in heterogeneous environments, and has appropriate service levels and manageability. However, its essence is that each business system integrates third-party protocols for message communication and service calls, which is relatively complex to implement, and the original system applications and functions need to be adaptively transformed. Summary of the invention
[0005] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide a method, device and system for information interaction between heterogeneous systems.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect of the present invention, a method for information interaction between heterogeneous systems is applied to an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0008] The method for information interaction between heterogeneous systems includes:
[0009] The first heterogeneous system obtains the communication message, converts the format of the communication message into a preset unified message format, obtains the unified format communication message and sends it to the message queue cluster;
[0010] The second heterogeneous system receives the unified format communication message sent by the message queue cluster, and converts the format of the unified format communication message into the second heterogeneous system communication format.
[0011] Optionally, also include:
[0012] The first heterogeneous system obtains the service call information of the second heterogeneous system, and converts the format of the service call information of the second heterogeneous system into a preset unified message format, obtains the unified format call information and sends it to the message queue cluster;
[0013] The second heterogeneous system receives the unified format call information sent by the message queue cluster, and converts the unified format call information into the second heterogeneous system communication format to obtain the second heterogeneous system communication format call information;
[0014] The second heterogeneous system generates a call result according to the second heterogeneous system communication format call information, converts the format of the call result into a preset unified message format, obtains the unified format call result and sends it to the message queue cluster;
[0015] The first heterogeneous system receives the unified format call result sent by the message queue cluster, and converts the format of the unified format call result into the first heterogeneous system communication format.
[0016] Optionally, also include:
[0017] The second heterogeneous system obtains the service registration information of the second heterogeneous system, converts the format of the service registration information of the second heterogeneous system into a preset unified message format, obtains a unified format service registration message and sends it to the message queue cluster; the message queue cluster sends the unified format service registration message to the first heterogeneous system, and the first heterogeneous system converts the format of the unified format service registration message into the first heterogeneous system communication format.
[0018] Optionally, the unified message format includes several messages, each message includes a message offset unit, a message size unit and a message unit which are arranged in sequence, the message unit includes a message length unit, a message timestamp unit, a message offset unit, a message primary key length unit, a message primary key unit, a message value length unit, a message value unit and a header information unit which are arranged in sequence, and the header information unit includes a header information primary key length unit, a header information primary key unit, a header information value length unit, a header information value unit and a check bit unit which are arranged in sequence.
[0019] In a second aspect of the present invention, a method for information interaction between heterogeneous systems is applied to a first heterogeneous system of an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0020] The method for information interaction between heterogeneous systems includes:
[0021] Obtain a communication message, and convert the format of the communication message into a preset unified message format, obtain a unified format communication message and send it to a message queue cluster; the unified format communication message is used to trigger the message queue cluster to send the unified format communication message to a second heterogeneous system, triggering the second heterogeneous system to convert the format of the unified format communication message into a second heterogeneous system communication format.
[0022] Optionally, also include:
[0023] Obtaining the service call information of the second heterogeneous system, and converting the format of the service call information of the second heterogeneous system into a preset unified message format, obtaining the call information in a unified format and sending it to the message queue cluster; the call information in the unified format is used to trigger the message queue cluster to send the call information in the unified format to the second heterogeneous system, triggering the second heterogeneous system to convert the format of the call information in the unified format into the communication format of the second heterogeneous system, obtaining the call information in the communication format of the second heterogeneous system, and triggering the second heterogeneous system to generate a call result according to the call information in the communication format of the second heterogeneous system, and converting the format of the call result into a preset unified message format, obtaining the call result in a unified format and sending it to the message queue cluster;
[0024] Receive the unified format call result sent by the message queue cluster, and convert the format of the unified format call result into the first heterogeneous system communication format.
[0025] In a third aspect of the present invention, a method for information interaction between heterogeneous systems is applied to a second heterogeneous system of an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0026] The method for information interaction between heterogeneous systems includes:
[0027] Receive a unified format communication message sent by the message queue cluster, and convert the format of the unified format communication message into a second heterogeneous system communication format;
[0028] The unified format communication message obtains the communication message through the first heterogeneous system, converts the format of the communication message into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system.
[0029] Optionally, also include:
[0030] Receive the unified format call information sent by the message queue cluster, and convert the unified format call information into the second heterogeneous system communication format to obtain the second heterogeneous system communication format call information; and generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into a preset unified message format, obtain the unified format call result and send it to the message queue cluster;
[0031] The unified format call information obtains the service call information of the second heterogeneous system through the first heterogeneous system, converts the format of the service call information of the second heterogeneous system into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; the unified format call result is used to trigger the message queue cluster to send the unified format call result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
[0032] In a fourth aspect of the present invention, a method for information interaction between heterogeneous systems is applied to a message queue cluster of an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster, and the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0033] The method for information interaction between heterogeneous systems includes:
[0034] A unified format communication message sent by a first heterogeneous system is received and sent to a second heterogeneous system; the unified format communication message is obtained by obtaining the communication message through the first heterogeneous system, and the format of the communication message is converted into a preset unified message format; the unified format communication message is used to trigger the second heterogeneous system to convert the format of the unified format communication message into the communication format of the second heterogeneous system.
[0035] Optionally, also include:
[0036] Receive unified format call information sent by the first heterogeneous system and send it to the second heterogeneous system; the unified format call information obtains the service call information of the second heterogeneous system through the first heterogeneous system, and converts the format of the service call information of the second heterogeneous system into a preset unified message format; the unified format call information is used to trigger the second heterogeneous system to convert the unified format call information into the second heterogeneous system communication format to obtain the second heterogeneous system communication format call information, and generate a call result according to the second heterogeneous system communication format call information, convert the format of the call result into a preset unified message format, and obtain a unified format call result;
[0037] The unified format call result sent by the second heterogeneous system is received and sent to the first heterogeneous system; the unified format call result is used to trigger the first heterogeneous system to convert the format of the unified format call result into the communication format of the first heterogeneous system.
[0038] In a fifth aspect of the present invention, a device for information interaction between heterogeneous systems is applied to a first heterogeneous system of an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0039] The heterogeneous system information interaction device includes:
[0040] A first data acquisition module, used to acquire communication messages;
[0041] A first adaption module, used for converting the format of the communication message into a preset unified message format to obtain a communication message in a unified format;
[0042] The first forwarding module is used to send a unified format communication message to a message queue cluster; the unified format communication message is used to trigger the message queue cluster to send the unified format communication message to a second heterogeneous system, triggering the second heterogeneous system to convert the format of the unified format communication message into a second heterogeneous system communication format.
[0043] Optional:
[0044] The first data acquisition module is further used to obtain the second heterogeneous system service call information; and receive the unified format call result sent by the message queue cluster;
[0045] The first adapter module is further used to convert the format of the second heterogeneous system service call information into a preset unified message format to obtain unified format call information; and convert the format of the unified format call result into the first heterogeneous system communication format;
[0046] The first forwarding module is also used to send unified format call information to the message queue cluster; the unified format call information is used to trigger the message queue cluster to send the unified format call information to the second heterogeneous system, trigger the second heterogeneous system to convert the format of the unified format call information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format call information, and trigger the second heterogeneous system to generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into a preset unified message format, obtain the unified format call result and send it to the message queue cluster.
[0047] In a sixth aspect of the present invention, a device for information interaction between heterogeneous systems is applied to a second heterogeneous system of an information interaction system between heterogeneous systems, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0048] The heterogeneous system information interaction device includes:
[0049] A second data acquisition module is used to receive a unified format communication message sent by the message queue cluster; the unified format communication message obtains the communication message through the first heterogeneous system, converts the format of the communication message into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system;
[0050] The second adaptation module is used to convert the format of the unified format communication message into a second heterogeneous system communication format.
[0051] Optionally, it also includes a calling module and a second forwarding module;
[0052] The second data acquisition module is further used to receive unified format call information sent by the message queue cluster; the unified format call information obtains the second heterogeneous system service call information through the first heterogeneous system, converts the format of the second heterogeneous system service call information into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system;
[0053] The second adaptation module is further used to convert the unified format calling information into a second heterogeneous system communication format to obtain the second heterogeneous system communication format calling information;
[0054] The calling module is used to generate a calling result according to the second heterogeneous system communication format calling information;
[0055] The second forwarding module is used to convert the format of the call result into a preset unified message format, obtain a unified format call result and send it to the message queue cluster; the unified format call result is used to trigger the message queue cluster to send the unified format call result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
[0056] In a seventh aspect of the present invention, a heterogeneous system information interaction device is applied to a message queue cluster of an inter-heterogeneous system information interaction system, wherein the heterogeneous cluster system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster, and the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0057] The heterogeneous system information interaction device includes:
[0058] A third data acquisition module is used to receive a communication message in a unified format sent by the first heterogeneous system; the communication message in the unified format is obtained by acquiring the communication message through the first heterogeneous system and converting the format of the communication message into a preset unified message format;
[0059] The third forwarding module is used to send the unified format communication message to the second heterogeneous system; the unified format communication message is used to trigger the second heterogeneous system to convert the format of the unified format communication message into the second heterogeneous system communication format.
[0060] Optional:
[0061] The third data acquisition module is further used to receive unified format call information sent by the first heterogeneous system, wherein the unified format call information obtains the service call information of the second heterogeneous system through the first heterogeneous system, and converts the format of the service call information of the second heterogeneous system into a preset unified message format; and receives the unified format call result sent by the second heterogeneous system;
[0062] The third forwarding module is further used to send unified format call information to the second heterogeneous system, the unified format call information is used to trigger the second heterogeneous system to convert the unified format call information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format call information, and generate a call result according to the second heterogeneous system communication format call information, convert the format of the call result into a preset unified message format, and obtain a unified format call result; and send the unified format call result to the first heterogeneous system, the unified format call result is used to trigger the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
[0063] In an eighth aspect of the present invention, a heterogeneous system information interaction system includes a first heterogeneous system, a second heterogeneous system and a message queue cluster, wherein the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster;
[0064] The first heterogeneous system is provided with the above-mentioned inter-heterogeneous system information interaction device of the first heterogeneous system applied to the inter-heterogeneous system information interaction system;
[0065] The second heterogeneous system is provided with the above-mentioned second heterogeneous system inter-heterogeneous system information interaction device applied to the inter-heterogeneous system information interaction system;
[0066] The message queue cluster is provided with the heterogeneous system information interaction device of the message queue cluster applied to the heterogeneous system information interaction system.
[0067] Compared with the prior art, the present invention has the following beneficial effects:
[0068] The method for information interaction between heterogeneous systems of the present invention obtains communication messages through a first heterogeneous system, then converts the format of the communication messages into a preset unified message format, obtains a communication message in a unified format and sends it to a message queue cluster, then receives the communication message in the unified format sent by the message queue cluster through a second heterogeneous system, and converts the format of the communication message in the unified format into the communication format of the second heterogeneous system, thereby realizing communication message interaction between the first heterogeneous system and the second heterogeneous system, effectively solving the problem of information chimneys and information barriers caused by the use of different message buses and service frameworks between heterogeneous systems, fully considering the information sharing between heterogeneous systems, only performing format conversion, sending and receiving of communication messages, and not requiring additional development work for the original heterogeneous systems. The original heterogeneous systems do not need to change their own message service communications, thereby ensuring continuous and convenient integration of heterogeneous systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 A flow chart of a method for information interaction between heterogeneous systems according to an embodiment of the present invention;
[0070] Figure 2 A schematic diagram of an application environment of the method for information interaction between heterogeneous systems according to an embodiment of the present invention;
[0071] Figure 3 A schematic diagram of a unified message format structure according to an embodiment of the present invention;
[0072] Figure 4 This is a structural block diagram of a device for information interaction between heterogeneous systems of a first heterogeneous system according to an embodiment of the present invention;
[0073] Figure 5 It is a structural block diagram of a device for information interaction between heterogeneous systems of a second heterogeneous system according to an embodiment of the present invention;
[0074] Figure 6 The present invention is a structural block diagram of a device for information interaction between heterogeneous systems of a message cluster queue according to an embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0076] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0077] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0078] See also Figure 1 In one embodiment of the present invention, a method for information interaction between heterogeneous systems is provided to effectively solve the problem of barriers to message communication and service calls that exist between heterogeneous systems in a power grid control center due to the use of different architectures and different message middleware.
[0079] Specifically, the information interaction method between heterogeneous systems can be applied to the information interaction system between heterogeneous systems, see Figure 2 The heterogeneous cluster system includes a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both connected to the message queue cluster for communication. The first heterogeneous system, the second heterogeneous system and the message queue cluster can all be server clusters.
[0080] The first heterogeneous system and the second heterogeneous system do not limit specific systems, but are only used to illustrate two systems that perform information interaction, and to indicate that the two systems that perform information interaction are heterogeneous. It should be noted that, for an actual system, when the method for information interaction between heterogeneous systems of the present invention is applied, it can be considered as the first heterogeneous system or the second heterogeneous system.
[0081] In this embodiment, the first heterogeneous system generally includes a local queue cluster, a gateway, a database / cache, and several consumers; the second heterogeneous system generally includes a local queue cluster, a gateway, a database / cache, and several producers; wherein a protocol adapter is set in the gateway. Both consumers and producers refer to members of the heterogeneous system, which can be understood as a single server or a server unit integrated with several servers.
[0082] In this embodiment, the method for information interaction between heterogeneous systems includes the following steps:
[0083] S1: The first heterogeneous system obtains a communication message, converts the format of the communication message into a preset unified message format, obtains a unified format communication message and sends it to a message queue cluster.
[0084] Specifically, when each consumer in the first heterogeneous system needs to interact with the second heterogeneous system for communication messages, each consumer generates a communication message and concentrates it in a local queue cluster of the first heterogeneous system, and stores it in a database / cache to obtain the communication message.
[0085] Then, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format through the protocol adapter in the gateway to obtain a unified format communication message, and then sent to the message queue cluster through the gateway of the first heterogeneous system. This solution is implemented by directly adding a gateway to the existing first heterogeneous system and adding a corresponding protocol adapter to the gateway. No additional development work is required for the existing first heterogeneous system. The protocol adapter needs to be set according to the actual communication protocol of each heterogeneous system to achieve adaptation with heterogeneous systems with different communication protocols.
[0086] Since the communication protocols between heterogeneous systems are different, after the communication message of the first heterogeneous system is directly forwarded, it is difficult for the second heterogeneous system to parse it after receiving it. Therefore, when performing information interaction, the information interaction method between heterogeneous systems of the present invention first converts the format of the communication message into a preset unified message format, which requires the definition of a unified message format in advance.
[0087] In one possible implementation, see Figure 3 , the communication message is distributed in the form of a message set, the unified message format includes a plurality of messages, each message includes a message offset unit, a message size unit and a message unit which are arranged in sequence. The value of the message offset unit is used to mark the offset of the current message in the storage, the value of the message size unit is used to indicate the size of the message, and the message unit is used to actually store the message.
[0088] The message unit includes a message length unit, a message timestamp unit, a message offset unit, a message key length unit, a message key unit, a message value length unit, a message value unit, and a header information unit, which are arranged in sequence. See Table 1, which shows the contents represented by the values of each part in the message unit:
[0089] Table 1 Message unit format analysis table
[0090]
[0091] The header information unit includes a header information primary key length unit, a header information primary key unit, a header information value length unit, a header information value unit and a check bit unit which are arranged in sequence. Specifically, the header information primary key length unit, the header information primary key unit, the header information value length unit and the header information value unit can refer to the above-mentioned message primary key length unit, the message primary key unit, the message value length unit and the message value unit, except that the corresponding content of the message is transformed into the corresponding content of the header message, and the value of the check bit unit is a content check code, ranging from the value of the message length unit to the value of the message value unit.
[0092] S2: The second heterogeneous system receives the unified format communication message sent by the message queue cluster, and converts the format of the unified format communication message into the second heterogeneous system communication format.
[0093] Specifically, the gateway of the second heterogeneous system receives the unified format communication message sent by the message queue cluster, and then converts the unified format communication message into the second heterogeneous system communication format through the protocol adapter in the gateway of the second heterogeneous system, thereby realizing the communication message interaction between the first heterogeneous system and the second heterogeneous system.
[0094] In summary, the method for information interaction between heterogeneous systems of the present invention obtains communication messages through the first heterogeneous system, and then converts the format of the communication messages into a preset unified message format, obtains a unified format communication message and sends it to the message queue cluster, then receives the unified format communication message sent by the message queue cluster through the second heterogeneous system, and converts the format of the unified format communication message into the second heterogeneous system communication format, thereby realizing communication message interaction between the first heterogeneous system and the second heterogeneous system, effectively solving the problem of information chimneys and information barriers caused by the use of different message buses and service frameworks between heterogeneous systems, fully considering the information sharing between heterogeneous systems, only performing format conversion, sending and receiving of communication messages, and no additional development work is required for the original heterogeneous system. The original heterogeneous system does not need to change its own message service communication, thereby ensuring continuous and convenient integration of heterogeneous systems.
[0095] In a possible implementation, in order to realize service call interaction between heterogeneous systems, the information interaction method between heterogeneous systems in the above embodiment also includes the following steps: the first heterogeneous system obtains the service call information of the second heterogeneous system, and converts the format of the service call information of the second heterogeneous system into a preset unified message format, obtains the unified format call information and sends it to the message queue cluster; the second heterogeneous system receives the unified format call information sent by the message queue cluster, and converts the unified format call information into the second heterogeneous system communication format, obtains the second heterogeneous system communication format call information; the second heterogeneous system generates a call result according to the second heterogeneous system communication format call information, and converts the format of the call result into the preset unified message format, obtains the unified format call result and sends it to the message queue cluster; the first heterogeneous system receives the unified format call result sent by the message queue cluster, and converts the format of the unified format call result into the first heterogeneous system communication format.
[0096] Specifically, for example, the power grid control center now has two heterogeneous systems. The first heterogeneous system uses the enterprise bus to make service calls, and the second heterogeneous system makes service calls based on a unified platform. The following is an explanation of the service call between these two heterogeneous systems. When the first heterogeneous system makes a service call to the second heterogeneous system, based on the difference in the service call information of the second heterogeneous system, it generally includes the second heterogeneous system service call request information and the second heterogeneous system service call subscription information. There are two corresponding modes: request / response mode and subscription / publish mode. Among them, in the request / response mode, the service caller initiates a service request and obtains the service result from the service producer; in the subscription / publish mode, the service producer actively pushes the service result to the service caller. The two modes mainly require the establishment of a unified service description method and a unified service routing.
[0097] In a possible implementation, in order to facilitate the perception of services of each heterogeneous system, the method for information interaction between heterogeneous systems also includes the following steps: the second heterogeneous system obtains the service registration information of the second heterogeneous system, converts the format of the service registration information of the second heterogeneous system into a preset unified message format, obtains a unified format service registration message and sends it to a message queue cluster; the message queue cluster sends the unified format service registration message to the first heterogeneous system; the first heterogeneous system converts the format of the unified format service registration message into the communication format of the first heterogeneous system, and realizes the perception of the second heterogeneous system service registration information in the first heterogeneous system.
[0098] Specifically, by collecting service registration information from the local queue cluster of the second heterogeneous system, the service registration information can be collected through a combination of push and pull methods, and input into the message queue cluster for parsing and sending, thereby realizing the perception of the second heterogeneous system service, and finally realizing global service registration and publishing, service status information perception and service shared positioning through the gateway.
[0099] In a possible implementation, the specific process of the request / response mode is as follows:
[0100] 1. Synchronize the service in the second heterogeneous system to the service center of the message queue cluster, that is, send the service registration information of the second heterogeneous system to the service center of the message queue cluster.
[0101] 2. The service center of the message queue cluster notifies the protocol adapter of the gateway of the first heterogeneous system of the service registration information of the second heterogeneous system, and completes the registration in the local queue cluster of the first heterogeneous system.
[0102] 3. When the consumer in the first heterogeneous system calls the service in the second heterogeneous system registered in the local queue cluster, the local protocol adapter completes the protocol conversion and routes the second heterogeneous system service call information to the service center of the message queue cluster through the gateway.
[0103] 4. The service center of the message queue cluster forwards the actual address of the service corresponding to the service call information of the second heterogeneous system to the gateway of the second heterogeneous system, and completes the call to the local service through the protocol adapter of the second heterogeneous system to obtain the call result.
[0104] 5. The second heterogeneous system converts the call result through the local protocol adapter and returns it to the consumer of the first heterogeneous system through the local gateway and message queue cluster routing.
[0105] The specific process of the subscription / publishing model is as follows:
[0106] 1. A consumer of the first heterogeneous system subscribes to a service of the second heterogeneous system, and synchronizes the service call subscription information of the second heterogeneous system to the service center of the message queue cluster through the protocol adapter and the gateway.
[0107] 2. The service center of the message queue cluster distributes the second heterogeneous system service call subscription information to the gateway and protocol adapter of the heterogeneous second heterogeneous system, and registers it to the local cluster queue.
[0108] 3. The service of the second heterogeneous system sends the service result to the local cluster queue, forwards it to the protocol adapter for conversion, and then sends the service result to the service center of the message queue cluster through the gateway.
[0109] 4. The service center of the message queue cluster sends the service result to the first heterogeneous system.
[0110] 5. The first heterogeneous system routes the service result to the subscriber address of the first heterogeneous system through the gateway and the protocol adapter, thereby completing the sending of the service result.
[0111] Through the above method, without additional development of existing heterogeneous systems, service interaction between heterogeneous systems, that is, service calling between heterogeneous systems, can be realized, which greatly improves the synergy between heterogeneous systems and can enhance the horizontal interaction capabilities of heterogeneous systems inside and outside the power grid dispatching and control system.
[0112] In another embodiment of the present invention, a method for information interaction between heterogeneous systems is provided, which is applied to a first heterogeneous system of an information interaction system between heterogeneous systems. The method for information interaction between heterogeneous systems includes: obtaining a communication message, and converting the format of the communication message into a preset unified message format, obtaining a communication message in a unified format and sending it to a message queue cluster; the communication message in the unified format is used to trigger the message queue cluster to send the communication message in the unified format to a second heterogeneous system, triggering the second heterogeneous system to convert the format of the communication message in the unified format into the communication format of the second heterogeneous system.
[0113] In a possible implementation, the method for information interaction between heterogeneous systems also includes: obtaining service call information of the second heterogeneous system, and converting the format of the service call information of the second heterogeneous system into a preset unified message format, obtaining unified format call information and sending it to the message queue cluster; receiving the unified format call result sent by the message queue cluster, and converting the format of the unified format call result into the first heterogeneous system communication format.
[0114] Among them, the unified format call information is used to trigger the message queue cluster to send the unified format call information to the second heterogeneous system, trigger the second heterogeneous system to convert the format of the unified format call information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format call information, and trigger the second heterogeneous system to generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into a preset unified message format, obtain the unified format call result and send it to the message queue cluster.
[0115] In another embodiment of the present invention, a method for information interaction between heterogeneous systems is provided, which is applied to a second heterogeneous system of the information interaction system between heterogeneous systems. The method for information interaction between heterogeneous systems includes: receiving a communication message in a unified format sent by a message queue cluster, and converting the format of the communication message in the unified format into a communication format of the second heterogeneous system; the communication message in the unified format obtains a communication message through a first heterogeneous system, converts the format of the communication message into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system.
[0116] In a possible implementation, the method for information interaction between heterogeneous systems also includes: receiving unified format call information sent by the message queue cluster, and converting the unified format call information into a second heterogeneous system communication format to obtain second heterogeneous system communication format call information; and generating a call result according to the second heterogeneous system communication format call information, and converting the format of the call result into a preset unified message format, obtaining a unified format call result and sending it to the message queue cluster.
[0117] Among them, the unified format call information obtains the service call information of the second heterogeneous system through the first heterogeneous system, converts the format of the service call information of the second heterogeneous system into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; the unified format call result is used to trigger the message queue cluster to send the unified format call result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format call result into the communication format of the first heterogeneous system.
[0118] In another embodiment of the present invention, a method for information interaction between heterogeneous systems is provided, which is applied to a message queue cluster of an information interaction system between heterogeneous systems. The method for information interaction between heterogeneous systems includes: receiving a communication message in a unified format sent by a first heterogeneous system, and sending it to a second heterogeneous system; the communication message in the unified format is obtained by obtaining the communication message through the first heterogeneous system, and converting the format of the communication message into a preset unified message format; the communication message in the unified format is used to trigger the second heterogeneous system to convert the format of the communication message in the unified format into the communication format of the second heterogeneous system.
[0119] In a possible implementation, the method for information interaction between heterogeneous systems further includes: receiving unified format call information sent by the first heterogeneous system, and sending it to the second heterogeneous system; receiving unified format call results sent by the second heterogeneous system, and sending it to the first heterogeneous system.
[0120] Among them, the unified format calling information obtains the service calling information of the second heterogeneous system through the first heterogeneous system, and converts the format of the service calling information of the second heterogeneous system into a preset unified message format; the unified format calling information is used to trigger the second heterogeneous system to convert the unified format calling information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format calling information, and generate a calling result according to the second heterogeneous system communication format calling information, convert the format of the calling result into the preset unified message format, and obtain a unified format calling result; the unified format calling result is used to trigger the first heterogeneous system to convert the format of the unified format calling result into the first heterogeneous system communication format.
[0121] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.
[0122] See also Figure 4 In another embodiment of the present invention, an inter-heterogeneous system information interaction device is provided, which is applied to a first heterogeneous system of the inter-heterogeneous system information interaction system and can be used to implement the inter-heterogeneous system information interaction method applied to the first heterogeneous system of the inter-heterogeneous system information interaction system, and specifically includes a first data acquisition module, a first adaptation module and a first forwarding module.
[0123] Among them, the first data acquisition module is used to obtain communication messages; the first adaptation module is used to convert the format of the communication message into a preset unified message format to obtain a unified format communication message; the first forwarding module is used to send the unified format communication message to the message queue cluster; the unified format communication message is used to trigger the message queue cluster to send the unified format communication message to the second heterogeneous system, triggering the second heterogeneous system to convert the format of the unified format communication message into the second heterogeneous system communication format.
[0124] In a possible implementation, the first data acquisition module is also used to obtain the service call information of the second heterogeneous system; and receive the unified format call result sent by the message queue cluster; the first adaptation module is also used to convert the format of the service call information of the second heterogeneous system into a preset unified message format to obtain the unified format call information; and convert the format of the unified format call result into the first heterogeneous system communication format; the first forwarding module is also used to send the unified format call information to the message queue cluster; the unified format call information is used to trigger the message queue cluster to send the unified format call information to the second heterogeneous system, trigger the second heterogeneous system to convert the format of the unified format call information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format call information, and trigger the second heterogeneous system to generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into the preset unified message format, obtain the unified format call result and send it to the message queue cluster.
[0125] See also Figure 5 In another embodiment of the present invention, an inter-heterogeneous system information interaction device is provided, which is applied to a second heterogeneous system of the inter-heterogeneous system information interaction system and can be used to implement the inter-heterogeneous system information interaction method applied to the second heterogeneous system of the inter-heterogeneous system information interaction system, and specifically includes a second data acquisition module and a second adaptation module.
[0126] Among them, the second data acquisition module is used to receive a unified format communication message sent by a message queue cluster; the unified format communication message obtains the communication message through the first heterogeneous system, converts the format of the communication message into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; the second adaptation module is used to convert the format of the unified format communication message into the communication format of the second heterogeneous system.
[0127] In a possible implementation, it also includes a calling module and a second forwarding module. Among them, the second data acquisition module is also used to receive the unified format calling information sent by the message queue cluster; the unified format calling information obtains the second heterogeneous system service calling information through the first heterogeneous system, converts the format of the second heterogeneous system service calling information into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; the second adaptation module is also used to convert the unified format calling information into the second heterogeneous system communication format, and obtains the second heterogeneous system communication format calling information; the calling module is used to generate a calling result according to the second heterogeneous system communication format calling information; the second forwarding module is used to convert the format of the calling result into a preset unified message format, obtain the unified format calling result and send it to the message queue cluster; the unified format calling result is used to trigger the message queue cluster to send the unified format calling result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format calling result into the first heterogeneous system communication format.
[0128] In actual application, for a specific heterogeneous system, it can be used as either the first heterogeneous system or the second heterogeneous system. When an information interaction device between heterogeneous systems is set up inside it, the first adaptation module and the second adaptation module can be implemented by a protocol adapter, and the first forwarding module and the second forwarding module can be implemented by a gateway.
[0129] See also Figure 6 In another embodiment of the present invention, a device for information interaction between heterogeneous systems is provided, which is applied to a message queue cluster of an information interaction system between heterogeneous systems and can be used to implement the above-mentioned method for information interaction between heterogeneous systems of the message queue cluster applied to the information interaction system between heterogeneous systems, and specifically includes a third data acquisition module and a third forwarding module.
[0130] Among them, the third data acquisition module is used to receive a unified format communication message sent by the first heterogeneous system; the unified format communication message is obtained by acquiring the communication message through the first heterogeneous system, and converting the format of the communication message into a preset unified message format; the third forwarding module is used to send the unified format communication message to the second heterogeneous system; the unified format communication message is used to trigger the second heterogeneous system to convert the format of the unified format communication message into the communication format of the second heterogeneous system.
[0131] In a possible implementation, the third data acquisition module is also used to receive unified format call information sent by the first heterogeneous system, the unified format call information obtains the second heterogeneous system service call information through the first heterogeneous system, and converts the format of the second heterogeneous system service call information into a preset unified message format; and receives a unified format call result sent by the second heterogeneous system; the third forwarding module is also used to send the unified format call information to the second heterogeneous system, the unified format call information is used to trigger the second heterogeneous system to convert the unified format call information into the second heterogeneous system communication format call information, and generate a call result according to the second heterogeneous system communication format call information, convert the format of the call result into a preset unified message format, and obtain a unified format call result; and send the unified format call result to the first heterogeneous system, the unified format call result is used to trigger the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
[0132] In another embodiment of the present invention, a heterogeneous system information interaction system is provided, including a first heterogeneous system, a second heterogeneous system and a message queue cluster, wherein the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster. Figure 4 The information exchange device between heterogeneous systems in the embodiment shown; the second heterogeneous system is set Figure 5 The information exchange device between heterogeneous systems in the embodiment shown; the message queue cluster is set Figure 6 The device for information interaction between heterogeneous systems in the illustrated embodiment.
[0133] In a possible implementation, the second data acquisition module is also used to acquire the service registration information of the second heterogeneous system; the second adaptation module is also used to convert the format of the service registration information of the second heterogeneous system into a preset unified message format to obtain a unified format service registration message; the second forwarding module is used to send the unified format service registration message to the message queue cluster; the third data acquisition module is also used to receive the unified format service registration message, and the third forwarding module is also used to send the unified format service registration message to the first heterogeneous system; the first data acquisition module is also used to receive the unified format service registration message, and the first adaptation module is also used to convert the format of the unified format service registration message into the first heterogeneous system communication format.
[0134] In a possible implementation, the unified message format includes several messages, each message includes a message offset unit, a message size unit and a message unit arranged in sequence, the message unit includes a message length unit, a message timestamp unit, a message offset unit, a message primary key length unit, a message primary key unit, a message value length unit, a message value unit and a header information unit arranged in sequence, and the header information unit includes a header information primary key length unit, a header information primary key unit, a header information value length unit, a header information value unit and a check bit unit arranged in sequence.
[0135] All relevant contents of each step involved in the embodiment of the aforementioned method for information interaction between heterogeneous systems can be referred to the functional description of the functional modules corresponding to the apparatus for information interaction between heterogeneous systems in the embodiment of the present invention, and will not be repeated here.
[0136] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0137] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0139] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for information interaction between heterogeneous systems, characterized in that: Applied to an information interaction system between heterogeneous systems, the information interaction system between heterogeneous systems includes a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected with the message queue cluster; The method for information interaction between heterogeneous systems includes: The first heterogeneous system obtains the communication message, converts the format of the communication message into a preset unified message format, obtains the unified format communication message and sends it to the message queue cluster; Specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a unified format communication message; The second heterogeneous system receives the unified format communication message sent by the message queue cluster, and converts the format of the unified format communication message into the second heterogeneous system communication format; Specifically, the unified format communication message is converted into the second heterogeneous system communication format through a protocol adapter in the gateway of the second heterogeneous system.
2. The method for information interaction between heterogeneous systems according to claim 1, characterized in that: Also includes: The first heterogeneous system obtains the service call information of the second heterogeneous system, and converts the format of the service call information of the second heterogeneous system into a preset unified message format, obtains the unified format call information and sends it to the message queue cluster; The second heterogeneous system receives the unified format call information sent by the message queue cluster, and converts the unified format call information into the second heterogeneous system communication format to obtain the second heterogeneous system communication format call information; The second heterogeneous system generates a call result according to the second heterogeneous system communication format call information, converts the format of the call result into a preset unified message format, obtains the unified format call result and sends it to the message queue cluster; The first heterogeneous system receives the unified format call result sent by the message queue cluster, and converts the format of the unified format call result into the first heterogeneous system communication format.
3. The method for information interaction between heterogeneous systems according to claim 2, characterized in that: Also includes: The second heterogeneous system obtains the second heterogeneous system service registration information, converts the format of the second heterogeneous system service registration information into a preset unified message format, obtains a unified format service registration message and sends it to the message queue cluster; The message queue cluster sends a unified format service registration message to the first heterogeneous system, and the first heterogeneous system converts the format of the unified format service registration message into the first heterogeneous system communication format.
4. The method for information interaction between heterogeneous systems according to claim 1, characterized in that: The unified message format includes several messages, each of which includes a message offset unit, a message size unit and a message unit which are arranged in sequence; the message unit includes a message length unit, a message timestamp unit, a message offset unit, a message primary key length unit, a message primary key unit, a message value length unit, a message value unit and a header information unit which are arranged in sequence; and the header information unit includes a header information primary key length unit, a header information primary key unit, a header information value length unit, a header information value unit and a check bit unit which are arranged in sequence.
5. A method for information interaction between heterogeneous systems, characterized in that: A first heterogeneous system applied to an information interaction system between heterogeneous systems, wherein the information interaction system between heterogeneous systems comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster; The method for information interaction between heterogeneous systems includes: Obtain communication messages, convert the format of the communication messages into a preset unified message format, obtain unified format communication messages and send them to the message queue cluster; Specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a unified format communication message; The unified format communication message is used to trigger the message queue cluster to send the unified format communication message to the second heterogeneous system, triggering the second heterogeneous system to convert the format of the unified format communication message into the second heterogeneous system communication format; specifically, the unified format communication message is converted into the second heterogeneous system communication format through the protocol adapter in the gateway of the second heterogeneous system.
6. The method for information interaction between heterogeneous systems according to claim 5, characterized in that: Also includes: Obtaining the service call information of the second heterogeneous system, and converting the format of the service call information of the second heterogeneous system into a preset unified message format, obtaining the call information in a unified format and sending it to the message queue cluster; the call information in the unified format is used to trigger the message queue cluster to send the call information in the unified format to the second heterogeneous system, triggering the second heterogeneous system to convert the format of the call information in the unified format into the communication format of the second heterogeneous system, obtaining the call information in the communication format of the second heterogeneous system, and triggering the second heterogeneous system to generate a call result according to the call information in the communication format of the second heterogeneous system, and converting the format of the call result into a preset unified message format, obtaining the call result in a unified format and sending it to the message queue cluster; Receive the unified format call result sent by the message queue cluster, and convert the format of the unified format call result into the first heterogeneous system communication format.
7. A method for information interaction between heterogeneous systems, characterized in that: A second heterogeneous system applied to an inter-heterogeneous system information interaction system, wherein the inter-heterogeneous system information interaction system includes a first heterogeneous system, a second heterogeneous system and a message queue cluster; The first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster; The method for information interaction between heterogeneous systems includes: Receive a unified format communication message sent by the message queue cluster, and convert the format of the unified format communication message into the second heterogeneous system communication format; specifically, convert the unified format communication message into the second heterogeneous system communication format through a protocol adapter in a gateway of the second heterogeneous system; The unified format communication message is obtained by obtaining the communication message through the first heterogeneous system, converting the format of the communication message into a preset unified message format, and sending it to the message queue cluster through the first heterogeneous system; specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a unified format communication message.
8. The method for information interaction between heterogeneous systems according to claim 7, characterized in that: Also includes: Receiving unified format call information sent by the message queue cluster, and converting the unified format call information into a second heterogeneous system communication format to obtain the second heterogeneous system communication format call information; And generating a call result according to the second heterogeneous system communication format call information, and converting the format of the call result into a preset unified message format, obtaining a unified format call result and sending it to the message queue cluster; The unified format call information obtains the service call information of the second heterogeneous system through the first heterogeneous system, converts the format of the service call information of the second heterogeneous system into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; the unified format call result is used to trigger the message queue cluster to send the unified format call result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
9. A method for information interaction between heterogeneous systems, characterized in that: A message queue cluster applied to an information interaction system between heterogeneous systems, wherein the information interaction system between heterogeneous systems comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster, wherein both the first heterogeneous system and the second heterogeneous system are communicatively connected to the message queue cluster; The method for information interaction between heterogeneous systems includes: A communication message in a unified format sent by a first heterogeneous system is received, and sent to a second heterogeneous system; the communication message in the unified format is obtained by acquiring the communication message through the first heterogeneous system, and converting the format of the communication message into a preset unified message format; specifically, the communication message is transmitted to a gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a communication message in a unified format; the communication message in the unified format is used to trigger the second heterogeneous system to convert the format of the communication message in the unified format into the communication format of the second heterogeneous system; specifically, the communication message in the unified format is converted into the communication format of the second heterogeneous system via a protocol adapter in the gateway of the second heterogeneous system.
10. The method for information interaction between heterogeneous systems according to claim 9, characterized in that: Also includes: receiving unified format call information sent by the first heterogeneous system, and sending the unified format call information to the second heterogeneous system; The unified format calling information is obtained by acquiring the service calling information of the second heterogeneous system through the first heterogeneous system, and converting the format of the service calling information of the second heterogeneous system into a preset unified message format; The unified format calling information is used to trigger the second heterogeneous system to convert the unified format calling information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format calling information, generate a calling result according to the second heterogeneous system communication format calling information, convert the format of the calling result into a preset unified message format, and obtain the unified format calling result; receiving a unified format call result sent by the second heterogeneous system, and sending the result to the first heterogeneous system; The unified format calling result is used to trigger the first heterogeneous system to convert the format of the unified format calling result into the first heterogeneous system communication format.
11. An information interaction device between heterogeneous systems, characterized in that: A first heterogeneous system applied to an information interaction system between heterogeneous systems, wherein the information interaction system between heterogeneous systems comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster; The heterogeneous system information interaction device includes: A first data acquisition module, used to acquire communication messages; The first adapter module is used to convert the format of the communication message into a preset unified message format to obtain a unified format communication message; specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a unified format communication message; The first forwarding module is used to send a unified format communication message to a message queue cluster; the unified format communication message is used to trigger the message queue cluster to send the unified format communication message to a second heterogeneous system, triggering the second heterogeneous system to convert the format of the unified format communication message into the second heterogeneous system communication format; specifically, the unified format communication message is converted into the second heterogeneous system communication format through a protocol adapter in a gateway of the second heterogeneous system.
12. The device for information interaction between heterogeneous systems according to claim 11, characterized in that: The first data acquisition module is further used to obtain the second heterogeneous system service call information; and receive the unified format call result sent by the message queue cluster; The first adapter module is further used to convert the format of the second heterogeneous system service call information into a preset unified message format to obtain unified format call information; and convert the format of the unified format call result into the first heterogeneous system communication format; The first forwarding module is also used to send unified format call information to the message queue cluster; the unified format call information is used to trigger the message queue cluster to send the unified format call information to the second heterogeneous system, trigger the second heterogeneous system to convert the format of the unified format call information into the second heterogeneous system communication format, obtain the second heterogeneous system communication format call information, and trigger the second heterogeneous system to generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into a preset unified message format, obtain the unified format call result and send it to the message queue cluster.
13. An information interaction device between heterogeneous systems, characterized in that: A second heterogeneous system applied to an inter-heterogeneous system information interaction system, wherein the inter-heterogeneous system information interaction system comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster; the first heterogeneous system and the second heterogeneous system are both communicatively connected to the message queue cluster; The heterogeneous system information interaction device includes: The second data acquisition module is used to receive a communication message in a unified format sent by the message queue cluster; the communication message in the unified format is obtained by acquiring the communication message through the first heterogeneous system, converting the format of the communication message into a preset unified message format, and sending it to the message queue cluster through the first heterogeneous system; specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain a communication message in a unified format; The second adapter module is used to convert the format of the unified format communication message into the second heterogeneous system communication format; specifically, the unified format communication message is converted into the second heterogeneous system communication format through the protocol adapter in the gateway of the second heterogeneous system.
14. The device for information interaction between heterogeneous systems according to claim 13, characterized in that: Also includes a calling module and a second forwarding module; The second data acquisition module is further used to receive unified format call information sent by the message queue cluster; the unified format call information obtains the second heterogeneous system service call information through the first heterogeneous system, converts the format of the second heterogeneous system service call information into a preset unified message format, and sends it to the message queue cluster through the first heterogeneous system; The second adaptation module is further used to convert the unified format calling information into a second heterogeneous system communication format to obtain the second heterogeneous system communication format calling information; The calling module is used to generate a calling result according to the second heterogeneous system communication format calling information; The second forwarding module is used to convert the format of the call result into a preset unified message format, obtain the call result in a unified format and send it to the message queue cluster; The unified format call result is used to trigger the message queue cluster to send the unified format call result to the first heterogeneous system, triggering the first heterogeneous system to convert the format of the unified format call result into the first heterogeneous system communication format.
15. An information interaction device between heterogeneous systems, characterized in that: A message queue cluster applied to an information interaction system between heterogeneous systems, wherein the information interaction system between heterogeneous systems comprises a first heterogeneous system, a second heterogeneous system and a message queue cluster, wherein both the first heterogeneous system and the second heterogeneous system are communicatively connected to the message queue cluster; The heterogeneous system information interaction device includes: The third data acquisition module is used to receive a communication message in a unified format sent by the first heterogeneous system; the communication message in the unified format is obtained by acquiring the communication message through the first heterogeneous system, and converting the format of the communication message into a preset unified message format; specifically, the communication message is transmitted to the gateway of the first heterogeneous system, and the format of the communication message is converted into a preset unified message format via a protocol adapter in the gateway to obtain the communication message in the unified format; The third forwarding module is used to send the unified format communication message to the second heterogeneous system; the unified format communication message is used to trigger the second heterogeneous system to convert the format of the unified format communication message into the second heterogeneous system communication format; specifically, the unified format communication message is converted into the second heterogeneous system communication format through the protocol adapter in the gateway of the second heterogeneous system.
16. The device for information interaction between heterogeneous systems according to claim 15, characterized in that: The third data acquisition module is further used to receive unified format call information sent by the first heterogeneous system, the unified format call information acquires the second heterogeneous system service call information through the first heterogeneous system, and converts the format of the second heterogeneous system service call information into a preset unified message format; and receiving a unified format calling result sent by the second heterogeneous system; The third forwarding module is further used to send unified format call information to the second heterogeneous system, and the unified format call information is used to trigger the second heterogeneous system to convert the unified format call information into the second heterogeneous system communication format to obtain the second heterogeneous system communication format call information, and generate a call result according to the second heterogeneous system communication format call information, and convert the format of the call result into a preset unified message format to obtain the unified format call result; And sending the unified format calling result to the first heterogeneous system, wherein the unified format calling result is used to trigger the first heterogeneous system to convert the format of the unified format calling result into the first heterogeneous system communication format.
17. An information interaction system between heterogeneous systems, characterized in that: It includes a first heterogeneous system, a second heterogeneous system and a message queue cluster, wherein the first heterogeneous system and the second heterogeneous system are both communicatively connected with the message queue cluster; The first heterogeneous system is provided with the inter-heterogeneous system information interaction device according to claim 11 or 12; The second heterogeneous system is provided with the heterogeneous system information interaction device according to claim 13 or 14; The heterogeneous system information interaction device described in claim 15 or 16 is set in the message queue cluster.
Citation Information
Patent Citations
Method and apparatus for message conversion between heterogeneous service systems
CN101453710A