CN103714169A - Message obtaining method based on cascading theme - Google Patents

Message obtaining method based on cascading theme Download PDF

Info

Publication number
CN103714169A
CN103714169A CN201310752963.2A CN201310752963A CN103714169A CN 103714169 A CN103714169 A CN 103714169A CN 201310752963 A CN201310752963 A CN 201310752963A CN 103714169 A CN103714169 A CN 103714169A
Authority
CN
China
Prior art keywords
theme
message
module
cascading
cascade
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
Application number
CN201310752963.2A
Other languages
Chinese (zh)
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.)
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Original Assignee
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co 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 SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201310752963.2A priority Critical patent/CN103714169A/en
Publication of CN103714169A publication Critical patent/CN103714169A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Abstract

The invention provides a message obtaining method based on a cascading theme. The message obtaining method based on the cascading theme comprises the steps of applying for creating a first theme and a second theme of the cascading theme from a theme management module, creating the first theme and the second theme, feeding a creating result back to the theme management module, storing the cascading relation between the first theme and the second theme, subscribing for a message of the first theme, inquiring the cascading relation of the first theme in the theme management module, informing a message subscription module that the first theme is provided with a sub-theme second theme, subscribing for the messages of the first theme and the second theme for an ActiveMq at the same time, sending the messages of the first theme and the second theme to the message subscription module, and sending the messages of the first theme and the second theme to a message subscriber. According to the technical scheme, the message obtaining method based on the cascading theme has the advantages that the cascading theme is created, the user can obtain the messages of all the sub-themes under a parent theme only by subscribing for the messages of the parent theme, and complexity and difficulty of user development are reduced.

Description

Message acquisition method based on cascade theme
Technical field
Present invention relates in general to computer realm, more specifically, relate to the message acquisition method based on cascade theme.
Background technology
Message management framework gives information and issues and subscribing mechanism, for message, in different system, circulates.
In the prior art, Information frame is widely used in messaging between two application programs or in distributed system at present, carries out asynchronous communication.ActiveMq is that Apache produces, most popular, the messaging bus of increasing income that ability is powerful, and this message system is mainly comprised of the message producer, message subscribing person, message, message subject etc.The message producer gives out information in theme, and message subscribing person obtains message from theme, realizes the send and receive of message between the producer and consumer.
Yet, current ActiveMq system, a consumer can only obtain message from a message subject, the tree-like relation that there is no tandem type between theme, the succession and the dependence that there is no father and son's form, make user need to a plurality of themes be subscribed to and be processed respectively when using Information frame, strengthened difficulty and the complexity of exploitation.
Summary of the invention
For user in above prior art, when using Information frame, need to a plurality of themes be subscribed to and be processed respectively, strengthen the defects such as the difficulty of exploitation and complexity, the invention provides the message acquisition method based on cascade theme that can address the aforementioned drawbacks.
The invention provides a kind of message acquisition method based on cascade theme, comprise the following steps: theme founder creates cascade theme the first theme and second theme to the application of Subject Manager module, and wherein, second theme is the sub-topics of the first theme; Subject Manager module creates the first theme and second theme by message queue ActiveMq; ActiveMq returns to establishment result to Subject Manager module, and Subject Manager module is preserved the cascade connection between the first theme and second theme; Message subscribing person subscribes to the message of the first theme by message subscribing module; The cascade connection of the first theme in message subscribing module inquiry Subject Manager module; There is sub-topics second theme in Subject Manager module notification message subscribing module the first theme; The message that message subscribing module is subscribed to the first theme and second theme to ActiveMq simultaneously; ActiveMq sends to message subscribing module by the message of the first theme and second theme; And message subscribing module is by the message of the first theme of receiving and the second theme person that sends to message subscribing.
Preferably, second theme is a plurality of themes.
Preferably, in the method, there is the sub-topics of second theme.
Preferably, first themes as a plurality of themes.
Utilize technical scheme of the present invention can overcome the defect of prior art,
Utilize technical scheme of the present invention can overcome the defect of prior art, message acquisition method based on cascade theme, by setting up cascade theme, realize user and only need subscribe to father's theme message, just can obtain the function of all sub-topics message under father's theme, reduce complexity and the difficulty in User Exploitation.
Accompanying drawing explanation
When reading in conjunction with the accompanying drawings, the present invention may be better understood according to the following detailed description.Should be emphasized that, according to the standard practices in industry, various parts are not drawn in proportion.In fact, in order clearly to discuss, the size of various parts can be increased arbitrarily or be reduced.
Fig. 1 is according to the overall flow figure of the message acquisition method based on cascade theme of exemplary embodiment of the present invention;
Fig. 2 is according to the schematic diagram of the cascade theme of exemplary embodiment of the present invention; And
Fig. 3 is according to the block diagram of the message acquisition method based on cascade theme of exemplary embodiment of the present invention.
Embodiment
In order to implement different parts of the present invention, below describe many different embodiment or example are provided.The particular example of element and layout is below described to simplify the present invention.Certainly these are only that example is not intended to limit.Moreover, in below describing, first component is formed on second component and can comprises that wherein the first and second parts are directly to contact the embodiment of formation, and also can comprise that wherein extra parts formation is inserted into the embodiment in the first and second parts, make the directly contact of the first and second parts.With clear, can at random with different sizes, draw various parts for the sake of simplicity.
Fig. 1 is according to the overall flow figure of the message acquisition method based on cascade theme of exemplary embodiment of the present invention.
Hereinafter, with reference to Fig. 1, the message acquisition method 100 based on cascade theme is described in detail.In step 102, theme founder creates cascade theme the first theme and second theme to the application of Subject Manager module, and wherein, second theme is the sub-topics of the first theme; Particularly, first themes as a plurality of themes and second theme is a plurality of themes; There is the sub-topics of second theme.In step 104, Subject Manager module creates the first theme and second theme by message queue ActiveMq; In step 106, ActiveMq returns to establishment result to Subject Manager module, and Subject Manager module is preserved the cascade connection between the first theme and second theme; In step 108, message subscribing person subscribes to the message of the first theme by message subscribing module; In step 110, the cascade connection of the first theme in message subscribing module inquiry Subject Manager module; In step 112, there is sub-topics second theme in Subject Manager module notification message subscribing module the first theme; In step 114, the message that message subscribing module is subscribed to the first theme and second theme to ActiveMq simultaneously; In step 116, ActiveMq sends to message subscribing module by the message of the first theme and second theme; In step 118, message subscribing module is by the message of the first theme of receiving and the second theme person that sends to message subscribing.
Utilize the message acquisition method based on cascade theme of embodiments of the invention, by setting up cascade theme, realize user and only need subscribe to father's theme message, just can obtain the function of all sub-topics message under father's theme, reduced complexity and the difficulty in User Exploitation.
Fig. 2 is according to the schematic diagram of the cascade theme of exemplary embodiment of the present invention.
As shown in Figure 2, theme A and sub-topics thereof and theme B are parallel relation, and consumer subscribes to A(and comprises sub-topics) with topic of subscription B without any relation, the details message of two Topic relatives can send to respectively two subscribers.Theme A and theme A.A1 and A.A2 and subordinate's sub-topics thereof, it is tree-like cascade relation, user only needs topic of subscription A will receive all message of the sub-topics of theme A and all theme A simultaneously, comprises all message of theme A.A1, theme A.A2 in Fig. 2, theme A.A1.A11, theme A.A1.A12, theme A.A2.A21, theme A.A2.A22.Because theme founder is by creating cascade theme, a plurality of themes are carried out to association, thereby message subscribing person is when topic of subscription A, just can obtain the message of theme A and all sub-topicses thereof.
Fig. 3 is according to the block diagram of the message acquisition method based on cascade theme of exemplary embodiment of the present invention.
Below, with reference to Fig. 1, Fig. 2 and Fig. 3, the example of the message acquisition method based on cascade theme is described in detail.
With reference to figure 3, first, in 1 step, theme founder 302 creates cascade theme to 304 applications of Subject Manager module.For example, with reference to Fig. 2, cascade themes as theme A, theme A.A1 and theme A.A2, wherein theme A.A1 and the theme A.A2 sub-topics of A that is the theme.Then, in the 2nd step, Subject Manager module 304 creates the cascade theme such as theme A, theme A.A1 and theme A.A2 by ActiveMq.In the 3rd step, ActiveMq returns to establishment result to Subject Manager module, and Subject Manager module is preserved the cascade connection between theme.Particularly, in the 4th step, message subscribing person 308 is by the message of message subscribing module 310 topic of subscription A; In the 5th step, the cascade connection of theme A in message subscribing module 310 inquiry Subject Manager modules 304; In step 6, Subject Manager module 304 notification message subscribing module 310 theme A have sub-topics A.A1 and A.A2.In step 7,310 whiles of message subscribing module are to the message of ActiveMq topic of subscription A, A.A1 and A.A2.In step 8, ActiveMq sends to message subscribing module 310 by the message of theme A, A.A1 and A.A2.In step 9, message subscribing module 310 is by all message of the theme A, the A.A1 that receive and A.A2 person 308 that sends to message subscribing.
Utilize the message acquisition method based on cascade theme of embodiments of the invention, by increase Subject Manager module and message subscribing module on the basis of ActiveMq, by setting up cascade theme, realize user and only need subscribe to father's theme message, just can obtain the function of all sub-topics message under father's theme, reduce complexity and the difficulty in User Exploitation.
Discuss the parts of some embodiment above, made those of ordinary skills' various aspects that the present invention may be better understood.It will be understood by those skilled in the art that can with the present invention, as basis, design or change at an easy rate other for reach with here the identical object of the embodiment that introduces and/or realize processing and the structure of same advantage.Those of ordinary skills also should be appreciated that this equivalent constructions does not deviate from the spirit and scope of the present invention, and in the situation that not deviating from the spirit and scope of the present invention, can carry out multiple variation, replacement and change.

Claims (4)

1. the message acquisition method based on cascade theme, is characterized in that, comprises the following steps:
Theme founder creates cascade theme the first theme and second theme to the application of Subject Manager module, and wherein, described second theme is the sub-topics of described the first theme;
Described Subject Manager module creates described the first theme and described second theme by message queue ActiveMq;
Described ActiveMq returns to establishment result to described Subject Manager module, and described Subject Manager module is preserved the cascade connection between described the first theme and described second theme;
Message subscribing person subscribes to the message of described the first theme by message subscribing module;
Described message subscribing module is inquired about the cascade connection of the first theme described in described Subject Manager module;
Described Subject Manager module notifies described in described message subscribing module the first theme to have second theme described in sub-topics;
The message that described message subscribing module is subscribed to described the first theme and described second theme to described ActiveMq simultaneously;
Described ActiveMq sends to described message subscribing module by the message of described the first theme and described second theme; And
Described message subscribing module sends to described message subscribing person by the message of described the first theme of receiving and described second theme.
2. method according to claim 1, is characterized in that, described second theme is a plurality of themes.
3. method according to claim 1, is characterized in that, has the sub-topics of described second theme.
4. method according to claim 1, is characterized in that, described first themes as a plurality of themes.
CN201310752963.2A 2013-12-31 2013-12-31 Message obtaining method based on cascading theme Pending CN103714169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310752963.2A CN103714169A (en) 2013-12-31 2013-12-31 Message obtaining method based on cascading theme

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310752963.2A CN103714169A (en) 2013-12-31 2013-12-31 Message obtaining method based on cascading theme

Publications (1)

Publication Number Publication Date
CN103714169A true CN103714169A (en) 2014-04-09

Family

ID=50407144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310752963.2A Pending CN103714169A (en) 2013-12-31 2013-12-31 Message obtaining method based on cascading theme

Country Status (1)

Country Link
CN (1) CN103714169A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591877A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method, device and system for service message transmission

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953426A (en) * 2005-10-19 2007-04-25 国际商业机器公司 Publish/subscribe system and method for managing subscriptions
CN101378403A (en) * 2008-07-02 2009-03-04 北京航空航天大学 System and method for processing resource notification based on aggregation
US7890489B2 (en) * 2004-12-01 2011-02-15 International Business Machines Corporation Just-in-time publishing system and program product for a publish/subscribe messaging system using a subscribe-event model
CN102859541A (en) * 2010-04-19 2013-01-02 国际商业机器公司 Controlling message delivery in publish/subscribe messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7890489B2 (en) * 2004-12-01 2011-02-15 International Business Machines Corporation Just-in-time publishing system and program product for a publish/subscribe messaging system using a subscribe-event model
CN1953426A (en) * 2005-10-19 2007-04-25 国际商业机器公司 Publish/subscribe system and method for managing subscriptions
CN101378403A (en) * 2008-07-02 2009-03-04 北京航空航天大学 System and method for processing resource notification based on aggregation
CN102859541A (en) * 2010-04-19 2013-01-02 国际商业机器公司 Controlling message delivery in publish/subscribe messaging

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张煜: "发布/订阅系统中信息订阅匹配技术研究与实现", 《中国优秀硕士论文全文数据库信息科技辑(月刊)》 *
戴俊等: "《基于ActiveMQ的异步消息总线的设计与实现》", 《计算机系统应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591877A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method, device and system for service message transmission

Similar Documents

Publication Publication Date Title
US20120060105A1 (en) Social network notifications
CN112350924B (en) Communication method, communication device, communication terminal and storage medium
US20200213251A1 (en) Systems and methods for a chatbot communication framework
CN105245577A (en) Information push method, device and system
CN105306712A (en) Management method and management system of notification message
CN105306662A (en) Information integration method and system for communication terminal
US20230208897A1 (en) Custom content insertion for user groups
CN106230922A (en) A kind of news subscribing method, message production unit and message reception units
CN104253741A (en) Information sending method and device and system thereof
CN104714970A (en) E-mail classification method, sending end, receiving end and system
CN103051519A (en) Mail server as well as mail processing method and system
CN105718529A (en) Method and device for pushing messages of application program on communication terminal
CN102255966A (en) Message pushing method and instant communication server
CN104618598A (en) Message sending method and device and mobile terminal
CN106095789A (en) A kind of message subscribing managing device and method
CN105447201A (en) Information sharing optimization method and terminal
CN103795758A (en) Content browsing method, content generating method, content interaction method, content browsing terminal, content server and content interaction system
CN105472419A (en) Message notification method and apparatus
CN105357656A (en) Method and system for flow fee reduction of syndication content APP
CN104932859A (en) System and method for synchronous release of mobile phone micro-websites and LED display screens
CN102315949A (en) Method for realizing p2p technology-based network conference
CN103716469A (en) Method and system for processing unread short messages
CN103714169A (en) Message obtaining method based on cascading theme
US8510426B2 (en) Communication and coordination between web services in a cloud-based computing environment
CN103327050A (en) Application content sharing method, system and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Applicant after: Shuguang Cloud Computing Group Co Ltd

Address before: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, building 36, floor 5

Applicant before: Shuguang Cloud Computing Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140409