CN108762945A - A kind of implementation method for supporting a variety of message queues - Google Patents
A kind of implementation method for supporting a variety of message queues Download PDFInfo
- Publication number
- CN108762945A CN108762945A CN201810455605.8A CN201810455605A CN108762945A CN 108762945 A CN108762945 A CN 108762945A CN 201810455605 A CN201810455605 A CN 201810455605A CN 108762945 A CN108762945 A CN 108762945A
- Authority
- CN
- China
- Prior art keywords
- message
- message queue
- queue
- variety
- supporting
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Abstract
The invention discloses a kind of implementation method for supporting a variety of message queues, realization process is:Message queue connector is configured first, and it includes transmission message which, which provides, receive message, message is monitored, the messenger service of message monitoring;The service that message queue connector provides is called to realize the asynchronous communication between user.A kind of implementation method for supporting a variety of message queues of the present invention is compared with prior art, provide general message queue connection type, various types of message queues can be adapted to, reduce the cost of implementation that asynchronous communication is carried out using message queue, it is highly practical, it is applied widely, solve the problems, such as that different clients carry out business application system asynchronous communication using different types of message queue.
Description
Technical field
The present invention relates to a kind of communication information technical field, specifically a kind of realization side supporting a variety of message queues
Method.
Background technology
It is logical into line asynchronous commonly using message queue between application system or in application system between different function module
Letter, interconnected with reaching system, module decoupling, the values such as peak load shifting.Application system is sent in calling message queue
Or when receiving message, need to establish the connection with Message Queuing Services;But the connection type that different message queues is established
Difference, this certainly will cause identical application to need to develop a variety of message queue connection processing logics.Therefore, application oriented system,
There is provided a kind of method that is general, supporting a variety of message queues is very important.
Invention content
The technical assignment of the present invention is to be directed to the above shortcoming, provides a kind of realization side supporting a variety of message queues
Method.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of implementation method for supporting a variety of message queues, realization process are:
Step 1: first configure message queue connector, the message queue connector offer includes send message, reception message,
Message monitors, the messenger service of message monitoring;
Step 2: the service that message queue connector provides is called to realize the asynchronous communication between user.
In the step 1, the configuration process of message queue connector is:
1)Configure Message Queuing Services connection;
2)It configures message queue and sends message interface;
3)It configures message queue and receives message interface;
4)It configures message queue and monitors service;
5)Configure message queue management service.
The step 1)In, Message Queuing Services connection includes the server address of message queue connector, port numbers, company
Connect mode, connection description information, registrable multiple, a plurality of types of Message Queuing Services of the Message Queuing Services.
The step 2)In, it includes the transmission message interface program that message queue provides that message queue, which sends message interface,
Collection, class name, method name and parameter declaration information.
The step 3)In, it includes the reception message interface program that message queue provides that message queue, which receives message interface,
Collection, class name, method name and parameter declaration information.
The step 4)In, the message queue service of monitoring includes the monitoring service routine collection, class name, side of message queue offer
Religious name and parameter declaration information.
The step 5)In, message queue management service includes the supervisor services collection, class name, side of message queue offer
Religious name and parameter declaration information.
The asynchronous communication realized in the step 2 refers to:By message queue connector configuration in business application system or
Between asynchronous communication scene between system, a variety of message queues are connected by message queue connector, provides and disappears for all users
Breath service, realizes message communicating.
The specific implementation process of the step 2 is:
The message transmission interface that message sender calls message queue connector to provide carries out message transmission;
Message receiver calls the message sink interface that message queue connector provides, and receives message and generates corresponding respond;
In message transmitting process, the management service of message queue offer, the transmission of monitoring message or reception condition are called.
Compared to the prior art a kind of implementation method for supporting a variety of message queues of the present invention, has below beneficial to effect
Fruit:
The present invention is provided general message queue connection type, can be fitted by a kind of connector for supporting a variety of message queues
With various types of message queues, the cost of implementation that asynchronous communication is carried out using message queue is reduced, it is highly practical, it is applicable in model
It encloses extensively, solves the problems, such as that different clients carry out business application system asynchronous communication using different types of message queue.
Description of the drawings
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art
Attached drawing is briefly described needed in technology description, it should be apparent that, the accompanying drawings in the following description is only this hair
Some bright embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Attached drawing 1 is the realization schematic diagram of the present invention.
Attached drawing 2 is the realization code map of the present invention.
Specific implementation mode
The invention will be further described in the following with reference to the drawings and specific embodiments.
As shown in Fig. 1, a kind of implementation method for supporting a variety of message queues of the invention, mainly by registering a variety of disappear
The mode of queue service is ceased to realize that a variety of message queues of connection carry out message communicating, it is intended to be solved different clients and be used inhomogeneity
The message queue of type carries out the problem of business application system asynchronous communication.
Its realization process is:
Step 1: first configure message queue connector, the message queue connector offer includes send message, reception message,
Message monitors, the messenger service of message monitoring;
Step 2: the service that message queue connector provides is called to realize the asynchronous communication between user.
Above-mentioned message queue connector is based on Active MQ, Kafka MQ, Rabbit MQ and realizes.
In the step 1, the configuration process of message queue connector is:
S100:Configure Message Queuing Services connection;
S101:It configures message queue and sends message interface;
S102:It configures message queue and receives message interface;
S103:It configures message queue and monitors service;
S104:Configure message queue management service.
In the step s 100, configuration Message Queuing Services connection.It further illustrates, Message Queuing Services connection includes message
The information such as queue Broker server address, port numbers, connection type, connection description, support registration is multiple, a plurality of types of to disappear
Cease queue service.
In step S101, configuration message queue sends message interface.It further illustrates, message queue sends message and connects
Mouthful, including the information such as transmission message interface procedure set, class name, method name and parameter declaration of message queue offer.
In step s 102, configuration message queue receives message interface.It further illustrates, message queue receives message and connects
Mouthful, including the information such as reception message interface procedure set, class name, method name and parameter declaration of message queue offer.
In step s 103, configuration message queue monitors service.It further illustrates, message queue monitors service, including disappears
Cease the information such as monitoring service routine collection, class name, method name and the parameter declaration that queue provides.
In step S104, message queue management service is configured.It further illustrates, message queue management service, including disappears
Cease the information such as supervisor services collection, class name, method name and the parameter declaration that queue provides.
In step 2, message queue connector provides common message handling services.It further illustrates, message queue connects
Device is connect to provide according to configuration and send message, receive the services such as message, message monitoring, message management monitoring.
Embodiment explanation:The present invention realizes the service by registration message queue Broker and its offer, ERP system
The service that message queue connection provides is called to realize that sales order connects with the asynchronous communication of order, ERP system, message queue is produced
The logical relation connect between device, message queue is as shown in Figure 1.
The service of registration message queue Broker and its offer first, registration configuration structure are as shown in Figure 2.Furtherly
It is bright, include the following steps:
Configure message queue connection;
It configures message queue and sends message interface;
It configures message queue and receives message interface;
It configures message queue and monitors service;
Configure message queue message management services.
Then, it calls the service that message queue connector provides to realize asynchronous communication, further illustrates, including following step
Suddenly:
The message transmission interface that sales order calls message queue connector to provide carries out transmission order information;
The message sink interface that order calls message queue connector to provide is produced, the generation production of sales order information is received and orders
It is single;
Finally, the management service for calling message queue to provide, the transmission of monitoring message or reception condition.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answers
Work as understanding, the present invention is not limited to above-mentioned specific implementation modes.On the basis of the disclosed embodiments, the technical field
Technical staff can arbitrarily combine different technical features, to realize different technical solutions.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.
Claims (9)
1. a kind of implementation method for supporting a variety of message queues, which is characterized in that its realization process is:
One, message queue connector is configured first, and message queue connector offer includes sending message, receiving message, message
It monitors, the messenger service of message monitoring;
Two, the service that message queue connector provides is called to realize the asynchronous communication between user.
2. a kind of implementation method for supporting a variety of message queues according to claim 1, which is characterized in that the step 1
In, the configuration process of message queue connector is:
1)Configure Message Queuing Services connection;
2)It configures message queue and sends message interface;
3)It configures message queue and receives message interface;
4)It configures message queue and monitors service;
5)Configure message queue management service.
3. a kind of implementation method for supporting a variety of message queues according to claim 2, which is characterized in that the step 1)
In, Message Queuing Services connection includes server address, port numbers, connection type, the connection description letter of message queue connector
Breath, registrable multiple, a plurality of types of Message Queuing Services of the Message Queuing Services.
4. a kind of implementation method for supporting a variety of message queues according to claim 2, which is characterized in that the step 2)
In, it includes transmission message interface procedure set, class name, method name and the ginseng that message queue provides that message queue, which sends message interface,
Scold bright information.
5. a kind of implementation method for supporting a variety of message queues according to claim 2, which is characterized in that the step 3)
In, it includes reception message interface procedure set, class name, method name and the ginseng that message queue provides that message queue, which receives message interface,
Scold bright information.
6. a kind of implementation method for supporting a variety of message queues according to claim 2, which is characterized in that the step 4)
In, the message queue service of monitoring includes monitoring service routine collection, class name, method name and the parameter declaration letter that message queue provides
Breath.
7. a kind of implementation method for supporting a variety of message queues according to claim 2, which is characterized in that the step 5)
In, message queue management service includes supervisor services collection, class name, method name and the parameter declaration letter that message queue provides
Breath.
8. a kind of implementation method for supporting a variety of message queues according to claim 1, which is characterized in that the step 2
The asynchronous communication of middle realization refers to:Message queue connector is configured into the asynchronous communication field in business application system or between system
Between scape, a variety of message queues are connected by message queue connector, for all user's providing message services, realize that message is logical
Letter.
9. a kind of implementation method for supporting a variety of message queues according to claim 8, which is characterized in that the step 2
Specific implementation process be:
The message transmission interface that message sender calls message queue connector to provide carries out message transmission;
Message receiver calls the message sink interface that message queue connector provides, and receives message and generates corresponding respond;
In message transmitting process, the management service of message queue offer, the transmission of monitoring message or reception condition are called.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810455605.8A CN108762945A (en) | 2018-05-14 | 2018-05-14 | A kind of implementation method for supporting a variety of message queues |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810455605.8A CN108762945A (en) | 2018-05-14 | 2018-05-14 | A kind of implementation method for supporting a variety of message queues |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108762945A true CN108762945A (en) | 2018-11-06 |
Family
ID=64010519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810455605.8A Pending CN108762945A (en) | 2018-05-14 | 2018-05-14 | A kind of implementation method for supporting a variety of message queues |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108762945A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399236A (en) * | 2019-07-25 | 2019-11-01 | 泰康保险集团股份有限公司 | Adaptation method, device, medium and the electronic equipment of message queue |
CN110417913A (en) * | 2019-08-09 | 2019-11-05 | 浪潮云信息技术有限公司 | A kind of asynchronous creation method of Cloud Server based on Rabbit MQ |
CN113419882A (en) * | 2021-08-24 | 2021-09-21 | 成都特维思科技有限公司 | Method for dynamically switching message queue |
CN113923248A (en) * | 2021-09-30 | 2022-01-11 | 深圳海智创科技有限公司 | Universal MQ interaction method, system, device and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7152094B1 (en) * | 2001-07-31 | 2006-12-19 | Sprint Communications Company L.P. | Middleware brokering system adapter |
CN101078995A (en) * | 2007-06-08 | 2007-11-28 | 北京大学 | Method for accessing information service in component operation support platform |
US20080115147A1 (en) * | 2006-11-15 | 2008-05-15 | Ricoh Corporation Ltd. | Device architecture to support multiple protocols |
CN101651631A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method for message access in system integration of global station network of television station |
US7937433B1 (en) * | 2003-09-23 | 2011-05-03 | Embarq Holdings Company, Llc | Queuing connector to promote message servicing |
CN102714634A (en) * | 2009-10-02 | 2012-10-03 | 杰出网络公司 | Real-time message queuing for a processing ring |
CN103843290A (en) * | 2011-09-29 | 2014-06-04 | 甲骨文国际公司 | System and method for supporting different message queues in a transactional middleware machine environment |
US9590885B1 (en) * | 2013-03-13 | 2017-03-07 | Sprint Communications Company L.P. | System and method of calculating and reporting of messages expiring from a queue |
CN106933589A (en) * | 2017-03-13 | 2017-07-07 | 车智互联(北京)科技有限公司 | A kind of message queue component based on configuration and its integrated method |
-
2018
- 2018-05-14 CN CN201810455605.8A patent/CN108762945A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7152094B1 (en) * | 2001-07-31 | 2006-12-19 | Sprint Communications Company L.P. | Middleware brokering system adapter |
US7937433B1 (en) * | 2003-09-23 | 2011-05-03 | Embarq Holdings Company, Llc | Queuing connector to promote message servicing |
US20080115147A1 (en) * | 2006-11-15 | 2008-05-15 | Ricoh Corporation Ltd. | Device architecture to support multiple protocols |
CN101078995A (en) * | 2007-06-08 | 2007-11-28 | 北京大学 | Method for accessing information service in component operation support platform |
CN101651631A (en) * | 2008-08-12 | 2010-02-17 | 新奥特(北京)视频技术有限公司 | Method for message access in system integration of global station network of television station |
CN102714634A (en) * | 2009-10-02 | 2012-10-03 | 杰出网络公司 | Real-time message queuing for a processing ring |
CN103843290A (en) * | 2011-09-29 | 2014-06-04 | 甲骨文国际公司 | System and method for supporting different message queues in a transactional middleware machine environment |
US9590885B1 (en) * | 2013-03-13 | 2017-03-07 | Sprint Communications Company L.P. | System and method of calculating and reporting of messages expiring from a queue |
CN106933589A (en) * | 2017-03-13 | 2017-07-07 | 车智互联(北京)科技有限公司 | A kind of message queue component based on configuration and its integrated method |
Non-Patent Citations (1)
Title |
---|
卢鹏: "基于JMS的消息中间件的轻量级设计与整合", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399236A (en) * | 2019-07-25 | 2019-11-01 | 泰康保险集团股份有限公司 | Adaptation method, device, medium and the electronic equipment of message queue |
CN110417913A (en) * | 2019-08-09 | 2019-11-05 | 浪潮云信息技术有限公司 | A kind of asynchronous creation method of Cloud Server based on Rabbit MQ |
CN113419882A (en) * | 2021-08-24 | 2021-09-21 | 成都特维思科技有限公司 | Method for dynamically switching message queue |
CN113923248A (en) * | 2021-09-30 | 2022-01-11 | 深圳海智创科技有限公司 | Universal MQ interaction method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762945A (en) | A kind of implementation method for supporting a variety of message queues | |
US11088975B2 (en) | Systems and methods for coordinating real-time messaging for data sharing and updating between participants using disparate message data formats | |
CN1708964B (en) | Redirection of notifications to a wireless user device | |
CN103312528B (en) | A kind of heartbeat message sending method and user terminal | |
US20040073670A1 (en) | Method of queuing requests to access a communications network | |
CN107888539A (en) | Internet-of-things terminal access device and method | |
CN105357286B (en) | A kind of real-time messages orientation method for pushing based on Web | |
US8644491B2 (en) | Mechanism for multisite service state description | |
CN109684111A (en) | Information push method, message push system and computer readable storage medium | |
US20180351889A1 (en) | Method and system for transferring messages between messaging systems | |
CN109327513A (en) | Exchange method, device and computer readable storage medium | |
CN107592215A (en) | A kind of method for managing message-oriented middleware | |
CN106789566A (en) | Different IM application messages sharing methods and system based on mobile phone operating system | |
CN109067669A (en) | Synchronization call method and application based on asynchronous interface | |
CN101339520B (en) | Method for accessing EJB into enterprise service bus | |
CN110247971A (en) | Reduce the method and its system of message-oriented middleware connection quantity | |
CN105005469A (en) | Non-blocking calling method based on Zookeeper and RabbitMQ | |
CN103297625B (en) | The CTI middleware system of call center and virtual method | |
CN105515947B (en) | A kind of method, server and the system of the heterogeneous terminals message intercommunication based on XMPP | |
CN115883309B (en) | Multi-service upstream and downstream multi-protocol access platform and method based on SAAS mode | |
CN107911462A (en) | High-volume method of data synchronization based on ActiveMQ | |
CN110417875B (en) | Method, system, equipment and storage medium for docking between cloud servers | |
CN109710435A (en) | A kind of message delivery method based on the more message queues of support | |
CN108833150A (en) | A kind of alarm method and device | |
CN114449013A (en) | Mutual compatible hospital framework of internet hospital |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181106 |