A multi-language message agent method and device

By setting up a proxy server between the application server and the message middleware server and including the message middleware client in the proxy server, communication barriers caused by inconsistency between the application system and the message middleware program language are solved, barrier-free communication is achieved and operation and maintenance costs are reduced.

CN111756844BActive Publication Date: 2025-05-13WEBANK (CHINA)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010588901.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-24
Publication Date
2025-05-13
Estimated Expiration
2040-06-24

AI Technical Summary

Technical Problem

In the prior art, the application system is inconsistent with the program language of the message middleware, resulting in communication barriers, and the version upgrade of the message middleware client requires synchronous update of a large number of application systems, resulting in high costs and the risk of update failure.

Method used

By setting up a proxy server between the message middleware server and the application server, and including a message middleware client in the proxy server, the language conversion and transmission of the first message sent by the application server is realized, and communication barriers between different languages ​​are solved, and the proxy server is allowed to independently update the message middleware client.

Benefits of technology

It realizes barrier-free communication between application systems in different program languages ​​and message middleware, reduces operation and maintenance costs, and independently updates the message middleware client of the proxy server, avoiding the problem of synchronous update of the application system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111756844B_ABST
    Figure CN111756844B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a multi-language message proxy method and device, the method comprising: a proxy server receives a first message sent by an application server based on a command word communication protocol; the first message conforms to a first program language used by the application server; the proxy server converts the first message into a second message, and sends the second message to a message middleware server through a message middleware client in the proxy server; the second message conforms to a second program language used by the message middleware client and the message middleware server. By adopting the above method, the message middleware is decoupled from the application server, so that the message middleware and the application server can communicate with each other even if they use different program languages. The operation and maintenance costs of the communication system of the application system and the message middleware are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the computer technology field of financial technology (Fintech), and in particular to a multi-language message agent method and device. Background Art

[0002] In recent years, with the development of computer technology, more and more technologies are applied in the financial field. The traditional financial industry is gradually transforming to financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology. Correspondingly, with the development of computer technology, the programming languages ​​used by computers are becoming more and more diverse, such as Java, C, Go and other programming languages. Communication between computers is often achieved through these programming languages.

[0003] In the prior art, communication between application systems (Client) sometimes requires the assistance of message middleware (MQ Server), because the current popular programming language is Java. Therefore, most of the message middleware (MQ Server) design language produced is Java. However, the design language of the application system (Client) is diverse due to the needs of enterprises, including Java, Python, C and Go. In this way, when the application system (Client) communicates through the message middleware (MQ Server), the application system (Client) and the message middleware (MQ Server) often have different programming languages, resulting in the inability to communicate. In addition, in the communication system between the application system (Client) and the message middleware (MQ Server), the application system (Client) needs to communicate with the message middleware (MQ Server) through the message middleware client (MQ Client), so the message middleware client (MQ Client) is usually integrated in the application system (Client); therefore, when the message middleware client (MQ Client) integrated in the application system (Client) needs to upgrade the version vulnerability, all related application systems (Client) need to be updated together with the message middleware client (MQ Client) integrated in the application system (Client). However, since enterprises have a large number of application systems (Client) communicating through the message middleware (MQ Server), when the message middleware client (MQ Client) needs to upgrade the version vulnerability, correspondingly, if a large number of application systems (Client) are updated, it will take a lot of time and manpower and material resources. Moreover, a large number of application system (Client) updates are generally accompanied by system update failures or update errors, which further increases the cost of application system (Client) updates. Summary of the invention

[0004] The embodiment of the present invention provides a multi-language message proxy method and device, which are used to decouple an application system from a message middleware and reduce the operation and maintenance costs of a communication system between the application system and the message middleware.

[0005] In a first aspect, an embodiment of the present invention provides a multilingual message agent method, the method comprising:

[0006] The proxy server receives a first message sent by an application server based on a command word communication protocol; the first message conforms to a first programming language used by the application server; the proxy server converts the first message into a second message, and sends the second message to a message middleware server through a message middleware client in the proxy server; the second message conforms to a second programming language used by the message middleware client and the message middleware server.

[0007] The above method is adopted, by setting a proxy server between the message middleware server and the application server, and making the proxy server include a message middleware client; so that the proxy server can receive the first message sent by the application server based on the command word communication protocol, and convert it into a second message, and further send it to the message middleware server through the middleware client. Among them, the first message uses the first programming language, and the second message uses the second programming language. In this way, the message middleware and the application server are decoupled, so that the message middleware and the application server can communicate with each other even if they use different programming languages. Reduce the operation and maintenance costs of the communication system of the application system and the message middleware.

[0008] In one possible design, the proxy server converts the first message into a second message, including: the proxy server extracts the ID of the message middleware server carried in the first message, determines the second program language to which the second message belongs based on a mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language; or, the proxy server determines the ID of the message middleware server based on usage of the message middleware server, determines the second program language to which the second message belongs based on a mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language.

[0009] Using the above method, the first message contains the ID of the application server, and the proxy server contains the mapping relationship between the ID of the application server and the second programming language. The second programming language used by the application server can be determined based on the ID of the application server. Then, the first message is converted into a second message in the second programming language. In this way, the communication barriers between servers of multiple different programming languages ​​are eliminated. Alternatively, the proxy server can select a message middleware server based on the usage of the message middleware server, further determine the second programming language of the message middleware server, and convert the first message that conforms to the first programming language into a second message that conforms to the second programming language. In this way, the speed of message transmission can be accelerated by selecting a message middleware server with better performance to transmit the second message.

[0010] In one possible design, the message format corresponding to the command word communication protocol includes a message header and a message body; the message header includes a command word for indicating a message type; the message body includes content to be transmitted; the proxy server converts the first message into a second message, including: the proxy server determines the message type of the generated second message based on the command word in the first message, and loads the content to be transmitted extracted from the first message into the second message.

[0011] By adopting the above method, the message format corresponding to the command word communication protocol includes a message header and a message body, and the command word representing the message type is set in the message header, and the content to be transmitted is set in the message body. Further, when the application server sends the first message to the proxy server according to the command word communication protocol, the proxy server also obtains the message type and the content to be transmitted of the first message based on the command word communication protocol, and converts the message type represented by the command word of the first program language to obtain the message type of the second program language, and loads the content to be transmitted to the corresponding position to obtain the second message that can be read by the message middleware; the proxy server sends the second message to the message middleware server through the message middleware client. In this way, the application server and the message middleware using different program languages ​​can communicate without obstacles, reducing the operation and maintenance costs of the communication system of the application system and the message middleware.

[0012] In a possible design, before the proxy server receives the first message sent by the application server based on the command word communication protocol, it also includes: the proxy server receives the connection establishment request sent by the application server; and the proxy server creates the message middleware client.

[0013] By adopting the above method, after the proxy server receives the connection establishment request sent by the application server, a message middleware client is created. The message middleware client provides an interface between the proxy server and the message middleware server, so that the proxy server can communicate with the message middleware server. Compared with the prior art of integrating the message middleware client with the application system in the application server, in the embodiment of the present application, the message middleware client is set in the proxy server, and the message middleware client is created by the proxy server. In this way, even if the message middleware client has an abnormality and needs to be updated, the application system in the application server does not need to be updated accordingly, and the updated message middleware client can be directly obtained through the proxy server, ensuring normal communication between the application server and the message middleware, and helping to decouple the application server from the message middleware.

[0014] In a second aspect, an embodiment of the present invention provides a multilingual message agent method, the method comprising:

[0015] The application server determines the proxy server; the proxy server is used to transmit messages between the application server and the message middleware server; the application server sends a first message to the proxy server based on a command word communication protocol, and the first message conforms to a first programming language used by the application server; the proxy server is used to convert the first message into a second message, and send the second message to the message middleware server through a message middleware client in the proxy server; the second message conforms to a second programming language used by the message middleware client and the message middleware server.

[0016] Using the above method, the application server determines the proxy server to be used, and sends a first message in the first program language to the proxy server based on the command word communication protocol; the proxy server converts the first message in the first program language into a second message in the second program language, and sends the second message to the message middleware server through the message middleware client. In this way, the message middleware server sends the second message to the proxy server corresponding to the application server on the other side, and the proxy server corresponding to the application server on the other side converts the second message in the second program language into a first message in the first program language based on the command word communication protocol, and sends it to the application server on the other side. In this way, communication between application servers through message middleware in different program languages ​​is completed. The message middleware is decoupled from the application server, reducing the operation and maintenance costs of the communication system of the application system and the message middleware.

[0017] In one possible design, the application server determines the proxy server, including:

[0018] The application server obtains an address list of the proxy server from the configuration server;

[0019] The application server determines the proxy server from the address list of the proxy servers.

[0020] By adopting the above method, the application server obtains the address list of the proxy server from the configuration server, and determines the proxy server from the address list of the proxy server. In this way, the application server can establish a connection with the proxy server according to the address of the selected proxy server, and realize the decoupling of the message middleware and the application server through the proxy server, so that the message middleware and the application server can communicate with each other even if they use different programming languages. The operation and maintenance costs of the communication system of the application system and the message middleware are reduced.

[0021] In a third aspect, an embodiment of the present invention provides a multilingual message agent device, the device comprising:

[0022] A transceiver module, used to receive a first message sent by an application server based on a command word communication protocol; the first message conforms to a first programming language used by the application server;

[0023] The processing module is used to convert the first message into a second message, and send the second message to the message middleware server through the message middleware client in the proxy server; the second message conforms to the second programming language used by the message middleware client and the message middleware server.

[0024] In a fourth aspect, an embodiment of the present invention provides a multilingual message agent device, the device comprising:

[0025] A determination module, used to determine a proxy server; the proxy server is used to transmit messages between the application server and the message middleware server;

[0026] A transceiver module is used to send a first message to the proxy server based on a command word communication protocol, wherein the first message complies with a first programming language used by the application server; the proxy server is used to convert the first message into a second message, and send the second message to the message middleware server through a message middleware client in the proxy server; the second message complies with a second programming language used by the message middleware client and the message middleware server.

[0027] In a fifth aspect, an embodiment of the present invention further provides a computing device, comprising: a memory for storing a computer program; a processor for calling the computer program stored in the memory, and executing the methods described in various possible designs of the first aspect and the second aspect according to the obtained program.

[0028] In the sixth aspect, an embodiment of the present invention further provides a computer-readable non-volatile storage medium, comprising a computer-readable program. When a computer reads and executes the computer-readable program, the computer executes the methods described in various possible designs of the first aspect and the second aspect.

[0029] These implementations or other implementations of the present invention will be more concise and understandable in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0031] Figure 1 A schematic diagram of the architecture of a multi-language message proxy method provided by an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of the architecture of a multi-language message proxy method provided by an embodiment of the present invention;

[0033] Figure 3 A flowchart of a multi-language message proxy method provided by an embodiment of the present invention;

[0034] Figure 4 A flowchart of a multi-language message proxy method provided by an embodiment of the present invention;

[0035] Figure 5 A flowchart of a multi-language message proxy method provided by an embodiment of the present invention;

[0036] Figure 6 A schematic diagram of a multi-language message agent device provided by an embodiment of the present invention;

[0037] Figure 7 A schematic diagram of a multi-language message agent device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] As shown in the figure, a schematic diagram of the architecture of a multi-language message proxy method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, an application server 102 among the multiple application servers 101 selects an address of a proxy server from the proxy server address list in the configuration server 107, and the application server 102 establishes a connection with the proxy server 104 according to the address of the proxy server 104. Here, the embodiment of the present invention also provides a schematic diagram of the architecture of another multi-language message proxy method, such as Figure 2 As shown, the proxy server 104 includes a message middleware client. Thus, after the proxy server 104 establishes a connection with the application server 102, the proxy server 104 creates a message middleware client. The application server 102 generates and sends a first message to the proxy server 104 based on the command word communication protocol. The proxy server 104 converts the first message into a second message, and sends the second message to the message middleware server 106 (which may be one or more, not specifically limited) through the message middleware client. The message middleware server 106 sends the second message to the proxy server 105. The proxy server 105 receives the second message through the message middleware client, converts the second message into a first message, and sends the first message to the application server 103 based on the command word communication protocol. Here, the application server 102 and the application server 103 may be the same application server. The message middleware client in the proxy server 105 may be generated after establishing a connection with the application server 103. The message middleware server 106 corresponding to the proxy server 104 and the proxy server 105 may be the same message middleware server or different message middleware servers.

[0040] Based on this, the present application embodiment provides a process of a multi-language message proxy method, such as Figure 3 As shown, including:

[0041] Step 301: The proxy server receives a first message sent by the application server based on a command word communication protocol; the first message conforms to a first programming language used by the application server;

[0042] Here, the proxy server is used to convert messages in different programming languages, and the proxy server can store expressions of the same meaning corresponding to different programming languages. The first programming language can be java, c, c++, go, python, etc. The command word communication protocol includes rules for expressions of the same meaning corresponding to different programming languages. The application server includes at least one application system, which is a demander that communicates with another application system by accessing the message middleware.

[0043] Step 302: The proxy server converts the first message into a second message, and sends the second message to the message middleware server through the message middleware client in the proxy server; the second message complies with a second programming language used by the message middleware client and the message middleware server.

[0044] Here, the message middleware client in the proxy server is the communication interface between the proxy server and the message middleware server. The message middleware server is used for communication between application servers. The second program language can be java, c, c++, go, python, etc.

[0045] An embodiment of the present application provides a method for converting a first message into a second message, comprising:

[0046] The proxy server extracts the ID of the message middleware server carried in the first message, determines the second program language to which the second message belongs based on the mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language; or, the proxy server determines the ID of the message middleware server based on the usage of the message middleware server, determines the second program language to which the second message belongs based on the mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language. Here, the mapping relationship between the ID of the message middleware server and the program language can be stored in the proxy server, so that when the application servers transmit messages through the message middleware, the obstacles of different program languages ​​generated when the application servers transmit messages through the message middleware can be eliminated according to the mapping relationship. In addition, the usage of the message middleware server can include the load of the message middleware server, the priority of the preset message middleware server, etc. When selecting a message middleware server, the proxy server can select a message middleware server with a higher priority and / or a lower load rate, and determine the second programming language of the message middleware server. In this way, the working pressure of the message middleware server can be reduced and the speed of message transmission between application servers can be accelerated.

[0047] The embodiment of the present application provides a message format, and the message format corresponding to the command word communication protocol includes a message header and a message body; the message header includes a command word for indicating the message type; the message body includes the content to be transmitted; the proxy server converts the first message into a second message, including: the proxy server determines the message type of the generated second message according to the command word in the first message, and loads the content to be transmitted extracted from the first message into the second message. That is, the message includes a message header and a message body, and the message header includes a command word for indicating the message type, such as seq (message number), Command (command word, which may include a command word describing the request type), Code (return code, used to mark the communication status between the application server and the proxy server as successful or abnormal), Msg (when the return code is an abnormality, it is used to store specific abnormal information). The message body includes the content to be transmitted, and the content to be transmitted may be business information, etc. The embodiment of the present application provides a Command corresponding to the command word communication protocol, as shown in Table 1:

[0048]

[0049]

[0050] Table 1

[0051] The embodiment of the present application provides a multi-language message proxy method, before the proxy server receives the first message sent by the application server based on the command word communication protocol, it also includes: the proxy server receives the connection establishment request sent by the application server; the proxy server creates the message middleware client. That is, after the application server and the proxy server establish a connection, the proxy server creates the message middleware client. Taking the Command in the above Table 1 as an example, in the process of establishing a connection between the application server and the proxy server: first, the application server sends a first message connection establishment request containing the HELLO_REQUEST command word in the message header to the proxy server, requesting to establish a connection; after receiving the first message connection establishment request, the proxy server establishes a connection with the application server, creates a message middleware client, and returns the connection creation status to the application server through the first message containing the HELLO_RESPONSE command word in the message header; after the connection is established, the application server sends a first message heartbeat request containing the HEARTBEAT_REQUEST command word in the message header to the proxy server, and after receiving the first message heartbeat request, the proxy server maintains the connection status between the application server and the proxy server by replying with the first message response containing the HEARTBEAT_RESPONSE command word in the message header.

[0052] Based on the above process, the present application embodiment provides a process of a multi-language message proxy method, such as Figure 4 As shown, including:

[0053] Step 401: The application server determines a proxy server; the proxy server is used to transmit messages between the application server and the message middleware server;

[0054] Here, the application server selects a proxy server to connect to and creates a connection with the proxy server.

[0055] Step 402: The application server sends a first message to the proxy server based on a command word communication protocol, wherein the first message complies with a first programming language used by the application server; the proxy server is used to convert the first message into a second message, and send the second message to the message middleware server through a message middleware client in the proxy server; the second message complies with a second programming language used by the message middleware client and the message middleware server.

[0056] Here, taking the Command in Table 1 above as an example, when the application server sends the first message based on the command word communication protocol, the first message header will include Command to mark the message type, such as:

[0057] After the application server establishes a connection with the proxy server, if it is sending a synchronous message, the message header of the first message will contain the REQUEST_TO_SERVER command word; if it is sending a reply message of a synchronous message, the message header of the first message will contain the RESPONSE_TO_SERVER command word; if it is sending an asynchronous message, the message header of the first message will contain the ASYNC_MESSAGE_TO_SERVER command word; after the proxy server receives the first message sent by the application server, it converts the first message into a second message, and uses the message middleware client to send the second message to the message middleware server. Among them, a synchronous message is that the application server sends a first message, and the first message needs to synchronously wait for a returned response. The response is also returned in the form of a message, which can be called a reply message. An asynchronous message is that the application server only needs to send a first message, and the first message is a message type that does not require a response.

[0058] When the application server receives the first message based on the command word communication protocol, the message header of the first message will contain Command to mark the message type. For example, after the application server establishes a connection with the proxy server, it can send a first message subscription topic request containing the SUBSCRIBE_REQUEST command word in the message header to inform the proxy server of the messages of the topics to be subscribed. The messages of the topics are the messages of the application server on the other side.

[0059] After the proxy server receives the first message subscription topic request sent by the application server, which includes the SUBSCRIBE_REQUEST command word in the message header; the proxy server converts the first message subscription topic request into a second message subscription topic request, and uses the message middleware client to send the second message subscription topic request to the message middleware server; and notifies the application server of the subscription result through the first message containing the SUBSCRIBE_RESPONSE command word in the message header; after the application server successfully subscribes, it sends the first message containing the LISTEN_REQUEST command word in the message header to the proxy server, informing the proxy server that it can start listening to the subscription topic information;

[0060] After the proxy server receives the first message containing the LISTEN_REQUEST command word in the message header, the message middleware client is started to obtain the second message subscription topic information of the application server on the other side from the message middleware server, and the second message subscription topic information is converted into the first message subscription topic information containing the LISTEN_RESPONSE command word in the message header; the first message subscription topic information is notified to the application server; wherein, if it is a synchronous message, the second message subscription topic information is converted into the first message subscription topic information containing the REQUEST_TO_CLIENT command word in the message header, and the first message subscription topic information is pushed to the application server; if it is a reply message of the synchronous message, the first message subscription topic information containing the RESPONSE_TO_CLIENT command word in the message header is pushed to the application server; if it is an asynchronous message, the first message subscription topic information containing the ASYNC_MESSAGE_TO_CLIENT command word in the message header is pushed to the application server.

[0061] An embodiment of the present application provides a process of a method for determining a proxy server, wherein an application server determines a proxy server, including: the application server obtains an address list of proxy servers from a configuration server; and the application server determines the proxy server from the address list of proxy servers.

[0062] Here, the configuration server can store a list of proxy server addresses, as shown in Table 2:

[0063]

[0064]

[0065] Table 2

[0066] In this way, the application server can obtain the proxy server address from the proxy server address list in the configuration server by random methods, and establish a connection with the proxy server according to the proxy server address. Among them, the application server can obtain the proxy server address list from the configuration server at a regular interval, or obtain the proxy server address list from the configuration server when message transmission is required; or, when the proxy server address list in the configuration server is updated, the updated proxy server address list can be actively pushed to the configuration server. Here, the application server obtains the proxy server address list, and the specific method for the application server to determine the proxy server address is not limited. Based on the above process, an embodiment of the present application provides a process of a multi-language message agent method, such as Figure 5 As shown, including:

[0067] Step 501: The application server randomly obtains a proxy server address from a proxy server address list in a configuration server, and establishes a connection with the proxy server according to the proxy server address.

[0068] Step 502: After the proxy server determines to establish a connection with the application server, it generates a message middleware client.

[0069] Step 503: The proxy server receives the first message sent by the application server, obtains the message header and message body in the first message, converts the message into a second message according to the message type in the message header, and loads the content to be transmitted in the first message body into the second message.

[0070] Step 504: The proxy server sends the second message to the message middleware server through the message middleware client.

[0071] Step 505: The message middleware server sends the proxy server of the application server on the other side, or the second message sent by the application server on the other side to the proxy server through the message middleware client.

[0072] Step 506: After receiving the second message sent by the proxy server of the application server on the other side or the application server on the other side, the proxy server converts the second message into the first message.

[0073] Step 507: The proxy server sends the first message to the application server.

[0074] Based on the same concept, the embodiment of the present application provides a multi-language message agent device. Figure 6 A schematic diagram of a multilingual message agent provided in an embodiment of the present application, such as Figure 6 Including:

[0075] The transceiver module 601 is used to receive a first message sent by the application server based on the command word communication protocol; the first message conforms to a first programming language used by the application server;

[0076] Processing module 602 is used to convert the first message into a second message, and send the second message to the message middleware server through the message middleware client in the proxy server; the second message conforms to the second programming language used by the message middleware client and the message middleware server.

[0077] In one possible design, the processing module 602 is specifically used for: the proxy server extracts the ID of the message middleware server carried from the first message, determines the second program language to which the second message belongs based on the mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language; or, the proxy server determines the ID of the message middleware server based on the usage of the message middleware server, determines the second program language to which the second message belongs based on the mapping relationship between the ID of the message middleware server and the second program language, and converts the first message that conforms to the first program language into a second message that conforms to the second program language.

[0078] In one possible design, the message format corresponding to the command word communication protocol includes a message header and a message body; the message header includes a command word for indicating a message type; the message body includes content to be transmitted; the proxy server converts the first message into a second message, including: the proxy server determines the message type of the generated second message based on the command word in the first message, and loads the content to be transmitted extracted from the first message into the second message.

[0079] In a possible design, the transceiver module 601 is also used for: the proxy server receiving the connection establishment request sent by the application server; the proxy server creating the message middleware client.

[0080] Based on the same concept, the embodiment of the present application provides a multi-language message agent device. Figure 7 A schematic diagram of a multilingual message agent provided in an embodiment of the present application, such as Figure 7 Including:

[0081] Determining module 701, used to determine a proxy server; the proxy server is used to transmit messages between the application server and the message middleware server;

[0082] The transceiver module 702 is used to send a first message to the proxy server based on a command word communication protocol, and the first message complies with a first programming language used by the application server; the proxy server is used to convert the first message into a second message, and send the second message to the message middleware server through a message middleware client in the proxy server; the second message complies with a second programming language used by the message middleware client and the message middleware server.

[0083] In a possible design, the determination module 701 is specifically used for: the application server obtains an address list of proxy servers from a configuration server; and the application server determines the proxy server from the address list of proxy servers.

[0084] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.

[0086] 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 comprising 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.

[0087] 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 The steps for the functions specified in one or more boxes.

[0088] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A multi-language message agent method, characterized in that: The method comprises: The proxy server receives the connection establishment request sent by the application server; The proxy server creates a message middleware client in the proxy server; The proxy server receives a first message sent by the application server based on a command word communication protocol; the first message conforms to a first programming language used by the application server, and the command word communication protocol includes a rule that the same meaning corresponds to an expression form of different programming languages; the message format corresponding to the command word communication protocol includes a message header and a message body, the message header includes a command word for indicating a message type, and the message body includes content to be transmitted; The proxy server determines the message type of the generated second message based on the command word in the first message, loads the content to be transmitted extracted from the first message into the second message, converts the first message into a second message, and sends the second message to the message middleware server through the message middleware client in the proxy server; the second message conforms to a second programming language used by the message middleware client and the message middleware server.

2. The method according to claim 1, characterized in that The proxy server converts the first message into a second message, including: The proxy server extracts the ID of the message middleware server carried in the first message, determines the second programming language to which the second message belongs based on the mapping relationship between the ID of the message middleware server and the second programming language, and converts the first message conforming to the first programming language into a second message conforming to the second programming language; Alternatively, the proxy server determines the ID of the message middleware server based on usage of the message middleware server, determines the second programming language to which the second message belongs based on a mapping relationship between the ID of the message middleware server and the second programming language, and converts the first message that conforms to the first programming language into a second message that conforms to the second programming language.

3. A multi-language message agent method, characterized in that: The method comprises: The application server sends a connection establishment request to the proxy server; the proxy server is used to create a message middleware client in the proxy server to perform message transmission between the application server and the message middleware server; The application server sends a first message to the proxy server based on a command word communication protocol, the first message conforms to a first programming language used by the application server, and the command word communication protocol contains rules for the expression of the same meaning in different programming languages; the message format corresponding to the command word communication protocol includes a message header and a message body, the message header includes a command word for indicating the message type, and the message body includes content to be transmitted; the proxy server is used to determine the message type of the generated second message based on the command word in the first message, load the content to be transmitted extracted from the first message into the second message, convert the first message into a second message, and send the second message to the message middleware server through the message middleware client in the proxy server; the second message conforms to a second programming language used by the message middleware client and the message middleware server.

4. The method according to claim 3, characterized in that The application server determines the proxy server, including: The application server obtains an address list of the proxy server from the configuration server; The application server determines the proxy server from the address list of the proxy servers.

5. A multi-language message agent device, characterized in that: The device comprises: A transceiver module is used to receive a connection establishment request sent by an application server; create a message middleware client; receive a first message sent by the application server based on a command word communication protocol; the first message conforms to a first program language used by the application server, and the command word communication protocol contains rules for the expression forms of the same meaning corresponding to different program languages; the message format corresponding to the command word communication protocol includes a message header and a message body, the message header includes a command word for indicating a message type, and the message body includes content to be transmitted; A processing module, used to determine the message type of the generated second message according to the command word in the first message, load the content to be transmitted extracted from the first message into the second message, convert the first message into a second message, and send the second message to the message middleware server through the message middleware client in the proxy device; the second message conforms to the second programming language used by the message middleware client and the message middleware server.

6. A multi-language message agent device, characterized in that: The device comprises: A determination module is used to send a connection establishment request to a proxy server; the proxy server is used to create a message middleware client in the proxy server to transmit messages between the application server and the message middleware server; A transceiver module is used to send a first message to the proxy server based on a command word communication protocol, the first message conforms to a first programming language used by the application server, the command word communication protocol contains rules for the expression of the same meaning in different programming languages; the message format corresponding to the command word communication protocol includes a message header and a message body, the message header includes a command word for indicating the message type, and the message body includes content to be transmitted; the proxy server is used to determine the message type of the generated second message based on the command word in the first message, load the content to be transmitted extracted from the first message into the second message, convert the first message into a second message, and send the second message to the message middleware server through the message middleware client in the proxy server; the second message conforms to a second programming language used by the message middleware client and the message middleware server.

7. A computer-readable storage medium, characterized in that: The storage medium stores a program, and when the program is run on a computer, the computer is enabled to implement the method according to any one of claims 1 to 4.

8. A computer device, characterized in that: include: Memory for storing computer programs; A processor is used to call the computer program stored in the memory, and execute the method according to any one of claims 1 to 4 according to the obtained program.

Citation Information

Patent Citations

  • Content delivery proxy system and method

    US20090100465A1

  • Middleware brokering system

    US7216181B1