CN111984438A - Message transmission method, message transmission device and message transmission system - Google Patents

Message transmission method, message transmission device and message transmission system Download PDF

Info

Publication number
CN111984438A
CN111984438A CN202010908022.3A CN202010908022A CN111984438A CN 111984438 A CN111984438 A CN 111984438A CN 202010908022 A CN202010908022 A CN 202010908022A CN 111984438 A CN111984438 A CN 111984438A
Authority
CN
China
Prior art keywords
message
type
application system
communication
message transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010908022.3A
Other languages
Chinese (zh)
Other versions
CN111984438B (en
Inventor
赵毅佳
吴阿妹
朱玉清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010908022.3A priority Critical patent/CN111984438B/en
Publication of CN111984438A publication Critical patent/CN111984438A/en
Application granted granted Critical
Publication of CN111984438B publication Critical patent/CN111984438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a message transmission method, a message transmission device and a message transmission system, wherein the method comprises the following steps: and when the message identifier of the second type message is matched with the message identifier of the first type message, the second type message is sent to the first application system through the first type communication, so that the message transmission between the first application system and the second application system is realized. The message identification is used for associating the first type message of the first application system with the second type message of the second application system, so that the message transmission between the first application system and the second application system can be realized without modification, the cost of the message transmission between the application systems with different communication types is reduced, and the message identification can be transplanted to other application systems with different communication types, and has portability.

Description

Message transmission method, message transmission device and message transmission system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a message transmission method, a message transmission apparatus, and a message transmission system.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Different systems use different communication methods for interaction and message transmission. For example, message transmission is performed using a communication scheme such as an mq (message queue) message queue or Socket. However, when the application system using the first type communication method needs to transmit a message to the application system using the second type communication method and receive a return message in time, the two application systems cannot directly communicate because they respectively use different types of communication methods. Currently, communication between two application systems adopting different types of communication modes is generally realized by respectively modifying codes of the two application systems. However, the method for implementing communication by modifying the code is high in cost and cannot be expanded to be transplanted to other two application systems adopting the first type communication and the second type communication.
Therefore, the existing application system communication for realizing different types of communication through code modification has the problems of high modification cost and no portability.
Disclosure of Invention
The embodiment of the invention provides a message transmission method, which is used for reducing the cost of message transmission between application systems of different communication types, so that the message transmission method has portability, namely is suitable for the message transmission between the application systems of other different communication types, and comprises the following steps:
extracting a message identifier of a first type message sent by a first application system adopting first type communication;
sending the first type message to a second application system adopting the second type communication through the second type communication;
extracting a message identifier of a second type message returned by a second application system aiming at the first type message;
and when the message identification of the second type message is matched with the message identification of the first type message, the second type message is sent to the first application system through the first type communication.
The embodiment of the present invention further provides a message transmission apparatus, configured to reduce the cost of message transmission between application systems of different communication types, so that the message transmission method has portability, that is, is suitable for message transmission between application systems of different communication types, where the message transmission apparatus includes:
the first extraction module is used for extracting the message identifier of the first type message sent by the first application system adopting the first type communication;
the first sending module is used for sending the first type message to a second application system adopting the second type communication through the second type communication;
the second extraction module is used for extracting the message identifier of the second type message returned by the second application system aiming at the first type message;
and the second sending module is used for sending the second type message to the first application system through the first type communication when the message identification of the second type message is matched with the message identification of the first type message.
The embodiment of the present invention further provides a message transmission system, which is used to reduce the cost of message transmission between application systems of different communication types, so that the message transmission method has portability, i.e. is suitable for message transmission between application systems of other different communication types, and the message transmission system includes:
the message transmission apparatus according to the above embodiment, the first application system using the first type of communication and the second application system using the second type of communication; the message transmission device is connected with the first application system through the first type communication and connected with the second application system through the second type communication;
a first application system for sending a first type of message to a message transmission device via a first type of communication;
the message transmission device is used for extracting the message identifier of the first type message sent by the first application system;
the message transmission device is also used for sending the first type message to a second application system adopting the second type communication through the second type communication;
the second application system is used for returning a second type message aiming at the first type message sent by the message transmission device;
the message transmission device is also used for extracting the message identifier of the second type message returned by the second application system aiming at the first type message;
and the message transmission device is also used for sending the second type message to the first application system through the first type communication when the message identification of the second type message is matched with the message identification of the first type message.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the message transmission method is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the above message transmission method is stored in the computer-readable storage medium.
In the embodiment of the invention, the message identification of the first type message sent by the first application system is extracted, the first type message is sent to the second application system, the message identification of the second type message returned by the second application system is further extracted, and when the message identification of the second type message is matched with the message identification of the first type message, the second type message is sent to the first application system through the first type communication, so that the message transmission between the first application system and the second application system is realized. The embodiment of the invention associates the first type message of the first application system with the second type message of the second application system through the message identifier, can realize the message transmission between the first application system and the second application system without modifying the first application system and the second application system, reduces the cost of the message transmission between the application systems with different communication types, can be transplanted to other application systems with different communication types, and has portability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating an implementation of a message transmission method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another implementation of a message transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of a partial implementation of another message transmission method according to an embodiment of the present invention;
fig. 4 is a flowchart of a partial implementation of another message transmission method according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a message transmission apparatus according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of another message transmission apparatus according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of a portion of another message transmitting apparatus according to an embodiment of the present invention;
FIG. 8 is a functional block diagram of a portion of another message transmitting apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a message transmission system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Fig. 1 shows an implementation flow of a message transmission method provided by an embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, and details are as follows:
as shown in fig. 1, a message transmission method includes:
step 101, extracting a message identifier of a first type message sent by a first application system 901 adopting first type communication;
step 102, sending the first type message to a second application system 902 using a second type communication through the second type communication;
step 103, extracting a message identifier of a second type message returned by the second application system 902 for the first type message;
step 104, when the message identifier of the second type message matches with the message identifier of the first type message, the second type message is sent to the first application system 901 through the first type communication.
In this embodiment of the present invention, the first application system 901 is an application system that uses a first type of communication (manner), and the second application system 902 is an application system that uses a second type of communication (manner). An application system generally refers to a system composed of a computer hardware system, a software system and an application system.
The first type communication and the second type communication are communication modes commonly used in the prior art. In one embodiment of the invention, the first type of communication comprises Socket communication, the first type of message comprises a Socket message, the second type of communication comprises an MQ message queue communication, and the second type of message comprises an MQ message. Still alternatively, the first type of communication comprises MQ message queue communication, the first type of communication comprises MQ messages, the second type of communication comprises Socket communication, and the second type of communication comprises Socket messages.
When the first application system 901 and the second application system 902 perform message transmission, the first application system 901 sends a first type message to a message transmission apparatus (see the description of the following embodiment) through first type communication, and the message transmission apparatus extracts a message identifier of the first type message after receiving the first type message sent by the first application system 901.
Further, the message transmitting means transmits the first type message to the second application system 902 through the second type communication. When receiving the first type message forwarded by the message transmission apparatus, the second application system 902 returns a second type message to the message transmission apparatus for the first type message. After receiving the second type message returned by the second application system 902 for the first type message, the message transmission apparatus also extracts the message identifier of the second type message returned by the second application system 902.
The message identifier is a message field which is configured in advance and uniquely identifies the first type of message, and is also a message field which uniquely identifies the second type of message, namely the message identifier is a message field which is commonly contained by the first type of message and the second type of message. In an embodiment, the message identification of the first type message or the message identification of the second type message may be directly identified using a message field common to the first type message and the second type message. For example, when the first type message and the second type message are transaction messages, the unique number of the transaction message is used as a message identifier.
In another embodiment, a message field common to the first type message and the second type message may be further transformed or modified, and the transformed or modified field is used as a message identifier of the first type message and the second type message.
For example, the same content, such as a code or a number, is added before or after a message field commonly contained in the first type message and the second type message or at a preset specific position. For example, if "ID" is added in front of the message identifier, the message identifier of the first type message is ID + common message field; the message identity of the second type message is ID + common message field, while the message identity of the first type message is still consistent with the message identity of the second type message.
In another embodiment, a message field common to the first type message and the second type message may be further transformed or modified, and the transformed or modified field is used as a message identifier of the first type message and the second type message. For example, a message type code is added before a message field which is commonly contained in the first type message and the second type message, for example, a represents the first type message, B represents the second type message, and the message of the first type is identified as a + common message field; the message identification of the second type message is a B + common message field. At this time, the message identifier of the first type message is not identical to the message identifier of the second type message, but they are mutually corresponding, and the mutual correspondence may be configured in advance.
After the message identifier of the first type message and the message identifier of the second type message are extracted respectively, the message transmission apparatus sends the second type message to the first application system 901 through the first type communication when the matching is successful, so as to realize the message transmission between the first application system 901 and the second application system 902.
When matching the message identity of the second type message with the message identity of the first type message, two situations are mainly involved.
(1) And the message identification is represented by a message field which is commonly contained in the first type message and the second type message.
At this time, the message identifier of the first type message is a message field commonly contained by the first type message and the second type message, and the message identifier of the second type message is also a message field commonly contained by the first type message and the second type message, that is, the message identifier of the first type message is completely consistent with the message identifier of the second type message. At this time, when the message identifier matched in the second type message is completely consistent with the message identifier matched in the first type message, the message transmission apparatus sends the second type message to the first application system 901 through the first type communication.
(2) And representing the message identification by using the deformation of the message field contained by the first type message and the second type message.
(A) Common variations or modifications of message fields commonly contained by messages of the first type and messages of the second type are employed.
At this time, the message identifier of the first type message is a modification of the message field commonly contained in the first type message and the second type message, and the message identifier of the second type message is a modification of the message field commonly contained in the first type message and the second type message. At this time, when the message identifier matched in the second type message is completely consistent with the message identifier matched in the first type message, the message transmission apparatus sends the second type message to the first application system 901 through the first type communication.
(B) Non-common variations or modifications of message fields that are commonly contained with messages of the first type and messages of the second type are employed.
At this time, the message identifier of the first type message is a modification of the message field commonly contained in the first type message and the second type message, and the message identifier of the second type message is another modification of the message field commonly contained in the first type message and the second type message. For example, in the above embodiment, the message identifier of the first type message is an a + common message field, and the message identifier of the second type message is a B + common message field, although the message identifier of the first type message is not consistent with the message identifier of the second type message, the corresponding relationship between the message identifier of the first type message and the message identifier of the second type message may still be pre-established, and specifically, when the message is transmitted, the matching is performed according to the pre-configured corresponding relationship (the corresponding relationship between the a + common message field and the B + common message field). At this time, when the message identifier of the second type message matches the message identifier of the first type message, the message transmission apparatus transmits the second type message to the first application system 901 through the first type communication.
In the embodiment of the present invention, the message identifier of the first type message sent by the first application system 901 is extracted, the first type message is sent to the second application system 902, and then the message identifier of the second type message returned by the second application system 902 is extracted, and when the message identifier of the second type message matches the message identifier of the first type message, the second type message is sent to the first application system 901 through the first type communication, so as to implement message transmission between the first application system 901 and the second application system 902. In the embodiment of the present invention, the first type message of the first application system 901 is associated with the second type message of the second application system 902 through the message identifier, and the message transmission between the first application system 901 and the second application system 902 can be implemented without modifying the first application system 901 and the second application system 902, so that the cost of the message transmission between application systems of different communication types is reduced, and meanwhile, the message transmission method can be transplanted to application systems of other different communication types, and has portability.
Fig. 2 shows an implementation flow of another message transmission method provided by the embodiment of the present invention, and for convenience of description, only the relevant parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to improve the matching efficiency of the message identifier, as shown in fig. 2, on the basis of the method steps shown in fig. 1, the message transmission method further includes:
step 201, recording the first type message and the message identifier of the first type message in a message matching relation table;
step 202, when the message identification of the second type message matches with the message identification of the first type message in the message matching relation table, recording the second type message in the message matching relation table.
After extracting the message identification of the first type message, recording the first type message, the message identification of the first type message and the corresponding relation of the first type message and the message identification of the first type message in a message matching relation table, after extracting the message identification of the second type message, matching the message identification of the second type message with the message identification of the first type message in the message matching relation table, and after the message identification of the second type message is matched with the message identification of the first type message, recording the second type message in the message matching relation table.
In the embodiment of the invention, the first type message and the message identifier of the first type message are recorded in the message matching relation table, when the message identifier of the second type message is matched with the message identifier of the first type message in the message matching relation table, the second type message is recorded in the message matching relation table, and the message identifier of the second type message is matched with the message identifier of the first type message through the message matching relation table, so that the matching efficiency of the message identifiers can be improved.
Fig. 3 illustrates a partial implementation flow of another message transmission method provided by an embodiment of the present invention, and for convenience of description, only the relevant parts related to the embodiment of the present invention are illustrated, and the detailed description is as follows:
in an embodiment of the present invention, in order to obtain a message transmission result in time, as shown in fig. 3, on the basis of the above method steps, the message transmission method further includes:
step 301, when the second type message returned by the second application system 902 for the first type message is not received and the first type communication connection is timed out, a message transmission failure is prompted.
When the second type message returned by the second application system 902 is not received, which indicates that a problem may occur in the communication connection, the second application system 902 is further waited to return the second type message. If the first-type communication connection is overtime and the second-type message returned by the second application system 902 is still not received, the communication connection failure is confirmed, and at this time, a prompt or notification of message transmission failure is sent.
In the embodiment of the present invention, when the second type message returned by second application system 902 for the first type message is not received and the first type communication connection is over time, the failure of message transmission is prompted, and the message transmission result can be obtained in time.
Fig. 4 shows a partial implementation flow of another message transmission method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the detailed description is as follows:
in an embodiment of the present invention, in order to obtain a message transmission result in time, as shown in fig. 4, on the basis of the above method steps, the message transmission method further includes:
step 401, when the message identifier of the second type message is not matched with the message identifier of the first type message and the first type communication connection is over time, a message transmission failure is prompted.
When the message identifier of the second type message does not match the message identifier of the first type message, the second application system 902 is further waited to return the second type message. If the first type communication connection is overtime, the message identification of the second type message is not matched with the message identification of the first type message, and a prompt or notice of message transmission failure is sent out at the moment.
In the embodiment of the invention, when the message identifier of the second type message is not matched with the message identifier of the first type message and the first type communication connection is overtime, the message transmission failure is prompted, and the message transmission result can be timely obtained.
An embodiment of the present invention further provides a message transmission apparatus, as described in the following embodiments. Since the principle of these devices to solve the problem is similar to the message transmission method, the implementation of these devices can be referred to the implementation of the method, and the repeated details are not repeated.
Fig. 5 shows functional modules of a message transmission apparatus provided in an embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, and detailed descriptions are as follows:
referring to fig. 5, each module included in the message transmission apparatus is configured to execute each step in the embodiment corresponding to fig. 1, specifically please refer to fig. 1 and the related description in the embodiment corresponding to fig. 1, which is not described herein again. In the embodiment of the present invention, the message transmission apparatus includes a first extraction module 501, a first sending module 502, a second extraction module 503, and a second sending module 504.
A first extracting module 501, configured to extract a message identifier of a first type message sent by a first application system 901 that employs first type communication.
A first sending module 502, configured to send the first type message to a second application system 902 using a second type communication through the second type communication.
The second extracting module 503 is configured to extract a message identifier of a second type message returned by the second application system 902 for the first type message.
A second sending module 504, configured to send the second type message to the first application system 901 through the first type communication when the message identifier of the second type message matches the message identifier of the first type message.
In the embodiment of the present invention, the first extraction module 501 extracts a message identifier of a first type message sent by the first application system 901, the first sending module 502 sends the first type message to the second application system 902, and then the second extraction module 503 extracts a message identifier of a second type message returned by the second application system 902, and when the message identifier of the second type message matches the message identifier of the first type message, the second sending module 504 sends the second type message to the first application system 901 through the first type communication, so as to implement message transmission between the first application system 901 and the second application system 902. In the embodiment of the present invention, the first type message of the first application system 901 is associated with the second type message of the second application system 902 through the message identifier, and the message transmission between the first application system 901 and the second application system 902 can be implemented without modifying the first application system 901 and the second application system 902, so that the cost of the message transmission between application systems of different communication types is reduced, and meanwhile, the message transmission method can be transplanted to application systems of other different communication types, and has portability.
Fig. 6 shows functional modules of another message transmission apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to improve the matching efficiency of the message identifier, referring to fig. 6, each module included in the message transmission apparatus is configured to execute each step in the embodiment corresponding to fig. 2, specifically refer to fig. 2 and the related description in the embodiment corresponding to fig. 2, and details are not repeated here. In the embodiment of the present invention, based on the above module structure, the message transmission apparatus further includes a first recording module 601 and a second recording module 602.
The first recording module 601 is configured to record the first type message and the message identifier of the first type message in a message matching relationship table.
A second recording module 602, configured to record the second type message in the message matching relationship table when the message identifier of the second type message matches the message identifier of the first type message in the message matching relationship table.
In the embodiment of the present invention, the first recording module 601 records the first type message and the message identifier of the first type message in the message matching relationship table, and the second recording module 602 records the second type message in the message matching relationship table when the message identifier of the second type message matches the message identifier of the first type message in the message matching relationship table, and matches the message identifier of the second type message with the message identifier of the first type message through the message matching relationship table, so that the matching efficiency of the message identifiers can be improved.
Fig. 7 shows some functional modules of another message transmission apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, referring to fig. 7, in order to obtain a message transmission result in time, modules included in the message transmission apparatus are configured to execute steps in the embodiment corresponding to fig. 3, and specifically refer to fig. 3 and related descriptions in the embodiment corresponding to fig. 3, which are not described herein again. In the embodiment of the present invention, on the basis of the above module structure, the message transmission apparatus further includes a first prompting module 701.
The first prompting module 701 is configured to prompt that transmission of the message fails when the second type message returned by the second application system 902 for the first type message is not received and the first type communication connection is over time.
In the embodiment of the present invention, when the first prompting module 701 cannot receive the second type message returned by the second application system 902 for the first type message and the first type communication connection is timed out, it is prompted that the message transmission fails, and the message transmission result can be obtained in time.
Fig. 8 shows a part of functional modules of another message transmission apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, referring to fig. 8, in order to obtain a message transmission result in time, modules included in the message transmission apparatus are configured to execute steps in the embodiment corresponding to fig. 4, and specifically please refer to fig. 4 and related descriptions in the embodiment corresponding to fig. 4, which are not described herein again. In the embodiment of the present invention, on the basis of the above module structure, the message transmission apparatus further includes a second prompting module 801.
The second prompting module 801 prompts that the message transmission fails when the message identifier of the second type message is not matched with the message identifier of the first type message and the first type communication connection is timed out.
In the embodiment of the present invention, when the message identifier of the second type message is not matched with the message identifier of the first type message and the first type communication connection is over time, the second prompting module 801 prompts that the message transmission fails, so that the message transmission result can be timely obtained.
Fig. 9 shows a structural schematic diagram of a message transmission system provided by an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
as shown in fig. 9, the message transmission system includes:
as for the message transmission apparatus in the above embodiment, the first application system 901 adopting the first type of communication and the second application system 902 adopting the second type of communication; the message transfer means is connected to the first application system 901 via a first type of communication and to the second application system 902 via a second type of communication.
A first application system 901 for sending a first type message to a message transmitting device via a first type communication.
Message transmission means, configured to extract a message identifier of the first type message sent by the first application system 901.
Message transmission means for sending the first type message to the second application system 902 using the second type communication through the second type communication.
A second application system 902, configured to return a second type message for the first type message sent by the message transmission apparatus.
The message transmission device is further configured to extract a message identifier of a second type message returned by the second application system 902 for the first type message.
The message transmission device is further configured to send the second type message to the first application system 901 through the first type communication when the message identifier of the second type message matches the message identifier of the first type message.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the message transmission method is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the above message transmission method is stored in the computer-readable storage medium.
To sum up, in the embodiment of the present invention, the message identifier of the first type message sent by the first application system 901 is extracted, the first type message is sent to the second application system 902, and then the message identifier of the second type message returned by the second application system 902 is extracted, and when the message identifier of the second type message matches the message identifier of the first type message, the second type message is sent to the first application system 901 through the first type communication, so as to implement message transmission between the first application system 901 and the second application system 902. In the embodiment of the present invention, the first type message of the first application system 901 is associated with the second type message of the second application system 902 through the message identifier, and the message transmission between the first application system 901 and the second application system 902 can be implemented without modifying the first application system 901 and the second application system 902, so that the cost of the message transmission between application systems of different communication types is reduced, and meanwhile, the message transmission method can be transplanted to application systems of other different communication types, and has portability.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for message transmission, comprising:
extracting a message identifier of a first type message sent by a first application system adopting first type communication;
sending the first type message to a second application system adopting the second type communication through the second type communication;
extracting a message identifier of a second type message returned by a second application system aiming at the first type message;
and when the message identification of the second type message is matched with the message identification of the first type message, the second type message is sent to the first application system through the first type communication.
2. The message transmission method of claim 1, further comprising:
recording the first type message and the message identification of the first type message in a message matching relation table;
and when the message identification of the second type message is matched with the message identification of the first type message in the message matching relation table, recording the second type message in the message matching relation table.
3. The message transmission method of claim 1, wherein the first type of communication comprises Socket communication, the first type of communication comprises Socket messages, the second type of communication comprises MQ message queue communication, and the second type of communication comprises MQ messages.
4. The message transmission method of claim 1, wherein the first type of communication comprises MQ message queue communication, the first type of communication comprises MQ messages, the second type of communication comprises Socket communication, and the second type of communication comprises Socket messages.
5. The message transmission method of claim 1, further comprising:
and when the second type message returned by the second application system aiming at the first type message is not received and the first type communication connection is overtime, the message transmission failure is prompted.
6. The message transmission method of claim 1, further comprising:
and when the message identification of the second type message is not matched with the message identification of the first type message and the first type communication connection is timed out, prompting that the message transmission is failed.
7. A message transmission apparatus, comprising:
the first extraction module is used for extracting the message identifier of the first type message sent by the first application system adopting the first type communication;
the first sending module is used for sending the first type message to a second application system adopting the second type communication through the second type communication;
the second extraction module is used for extracting the message identifier of the second type message returned by the second application system aiming at the first type message;
and the second sending module is used for sending the second type message to the first application system through the first type communication when the message identification of the second type message is matched with the message identification of the first type message.
8. A message transmission system, comprising:
the message transmitting apparatus according to claim 7, a first application system employing a first type of communication and a second application system employing a second type of communication; the message transmission device is connected with the first application system through the first type communication and connected with the second application system through the second type communication;
a first application system for sending a first type of message to a message transmission device via a first type of communication;
the message transmission device is used for extracting the message identifier of the first type message sent by the first application system;
the message transmission device is also used for sending the first type message to a second application system adopting the second type communication through the second type communication;
the second application system is used for returning a second type message aiming at the first type message sent by the message transmission device;
the message transmission device is also used for extracting the message identifier of the second type message returned by the second application system aiming at the first type message;
and the message transmission device is also used for sending the second type message to the first application system through the first type communication when the message identification of the second type message is matched with the message identification of the first type message.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the message transmission method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the message transmission method according to any one of claims 1 to 6.
CN202010908022.3A 2020-09-02 2020-09-02 Message transmission method, message transmission device and message transmission system Active CN111984438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010908022.3A CN111984438B (en) 2020-09-02 2020-09-02 Message transmission method, message transmission device and message transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010908022.3A CN111984438B (en) 2020-09-02 2020-09-02 Message transmission method, message transmission device and message transmission system

Publications (2)

Publication Number Publication Date
CN111984438A true CN111984438A (en) 2020-11-24
CN111984438B CN111984438B (en) 2024-04-19

Family

ID=73447985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010908022.3A Active CN111984438B (en) 2020-09-02 2020-09-02 Message transmission method, message transmission device and message transmission system

Country Status (1)

Country Link
CN (1) CN111984438B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164548A1 (en) * 2007-12-20 2009-06-25 Roman Hayer Message transport manager and methods for using the same
US20110289166A1 (en) * 2008-10-10 2011-11-24 Zte Corporation Method for realizing a message interaction and a converged service system
CN102685022A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Process method for media message return receipts and device with gateway function
CN103259713A (en) * 2013-04-15 2013-08-21 海信集团有限公司 Message exchange system and method
CN103634203A (en) * 2013-11-29 2014-03-12 北京奇虎科技有限公司 Message asynchronous transmission method, device and system
CN104281970A (en) * 2014-10-13 2015-01-14 中国外汇交易中心 Message processing method, message processing device and server platform
CN107147562A (en) * 2017-04-27 2017-09-08 腾讯科技(深圳)有限公司 Message treatment method and device
CN108702381A (en) * 2016-03-01 2018-10-23 华为技术有限公司 A kind of method for message transmission and core network interface equipment
CN111200592A (en) * 2019-12-17 2020-05-26 深圳供电局有限公司 Information transmission method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164548A1 (en) * 2007-12-20 2009-06-25 Roman Hayer Message transport manager and methods for using the same
US20110289166A1 (en) * 2008-10-10 2011-11-24 Zte Corporation Method for realizing a message interaction and a converged service system
CN102685022A (en) * 2011-03-11 2012-09-19 中兴通讯股份有限公司 Process method for media message return receipts and device with gateway function
CN103259713A (en) * 2013-04-15 2013-08-21 海信集团有限公司 Message exchange system and method
CN103634203A (en) * 2013-11-29 2014-03-12 北京奇虎科技有限公司 Message asynchronous transmission method, device and system
CN104281970A (en) * 2014-10-13 2015-01-14 中国外汇交易中心 Message processing method, message processing device and server platform
CN108702381A (en) * 2016-03-01 2018-10-23 华为技术有限公司 A kind of method for message transmission and core network interface equipment
CN107147562A (en) * 2017-04-27 2017-09-08 腾讯科技(深圳)有限公司 Message treatment method and device
CN111200592A (en) * 2019-12-17 2020-05-26 深圳供电局有限公司 Information transmission method, device and system

Also Published As

Publication number Publication date
CN111984438B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN101667928B (en) Client, signaling tracking server, protocol module and signaling tracking method
CN110796545A (en) Batch processing method, equipment and storage medium for blockchain transaction
CN110968431A (en) Message processing method, device and equipment
CN111431790B (en) Instant messaging method, device, system and storage medium
CN104679888A (en) Device and method for data synchronization
CN102609479A (en) Memory database node copying method
CN104462562A (en) Data migration system and method based on data warehouse automation
CN113806301B (en) Data synchronization method, device, server and storage medium
CN103731465A (en) Distributed system and transaction treatment method thereof
CN109189718B (en) Socket assembly and method for supporting multiple network interfaces
CN105094959A (en) Method and device for providing account checking document
CN111984438B (en) Message transmission method, message transmission device and message transmission system
CN109492375B (en) SAP ERP single sign-on system based on JAVA middleware integration mode
CN104333515A (en) Method and device for processing SWIFT messages
CN114338584B (en) Message withdraw method and message transmission system
CN112235205B (en) Method, device and storage medium for transmitting and consuming MQ message
CN101883345A (en) Method and device for processing AT command
CN115526586A (en) Business process processing method based on intelligent operation
CN105656769A (en) Service data processing method, apparatus and system
CN109728949B (en) Cluster starting method and device
CN109213766B (en) Data zero-delay processing method and terminal
CN113434587B (en) Data storage and data query method and system
CN113032123B (en) Thread scheduling method, system and related device of remote NPL running environment
CN113382373B (en) Monitoring device, system and method for bank peripheral system
CN115311076A (en) Method and system for returning housing loan in advance based on block chain technology and 5G message

Legal Events

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