CN102480417A - Dynamic message routing method and device for enterprise service bus - Google Patents

Dynamic message routing method and device for enterprise service bus Download PDF

Info

Publication number
CN102480417A
CN102480417A CN2010105628682A CN201010562868A CN102480417A CN 102480417 A CN102480417 A CN 102480417A CN 2010105628682 A CN2010105628682 A CN 2010105628682A CN 201010562868 A CN201010562868 A CN 201010562868A CN 102480417 A CN102480417 A CN 102480417A
Authority
CN
China
Prior art keywords
message
routing
router
isp
routing table
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
CN2010105628682A
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.)
BEIJING INTERVISION SOFTWARE Co Ltd
Original Assignee
BEIJING INTERVISION SOFTWARE 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 BEIJING INTERVISION SOFTWARE Co Ltd filed Critical BEIJING INTERVISION SOFTWARE Co Ltd
Priority to CN2010105628682A priority Critical patent/CN102480417A/en
Publication of CN102480417A publication Critical patent/CN102480417A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a dynamic message routing method and a device for an enterprise service bus. The method includes steps that firstly, a message router receives register requests of service providers, and services provided by the service providers are registered into the message router; secondly, message subscribers send out request messages to a subscription table dynamically maintained by the message router; and thirdly, the message router sends out the services to the message subscribers based on a routing table and the subscription table. By means of the dynamic message routing method and the device, the problem of ability insufficiency of a static message routing mechanism in terms of system maintenance and application change adaptability can be effectively solved, labor intensity is greatly relieved for users and developers, and application systems can be easier to maintain.

Description

Dynamic message method for routing and device in a kind of ESB
Technical field
The present invention relates to the middleware bussing technique, more particularly a kind of ESB (EnterpriseService Bus, dynamic message method for routing and device in ESB).
Background technology
ESB is the service-oriented system platform that provides the foundation, and through the rules of interaction between the definition service, ESB is for disposing and find that service provides running environment.ESB separates the definition of enterprises service with searching with calling of service, and the agreement that can shield between ISP and the service requester and the route service of message format difference are provided.Being linked to can be directly not mutual each other between the service of ESB, and the ESB runtime environment provides loose couplings as an arbitrator between service, realizes protocol binding, transmission of messages, Message Processing etc.ESB is that service provides transmission to bind, the service that definition and discovery have been disposed, rule-based route and layout message etc. between service.
(Java Business Integration JBI) has defined the pith of ESB: service container in the Java business integration.The JBI specific definition exploitation realize the functional requirement that the ESB system will accomplish, it mainly comprises three parts: normalized message route, management and component model.Normalized message route is the core of JBI standard, also is the soul of whole ESB framework.
Traditional message routing mechanism depends on intended target address or the associated pathway information that is stored in message header, and the content of message is sightless for messaging bus.Content-based route has then exposed the content of message to forwards mechanism, and influences the addressing and the route of message with this.Need not to specify any message destination information when giving out information like this, the destination information of message is by the interested information consumption person of the content of message is determined.Content-based message route can realize clean culture, multicast and the multicast of message with uniform way.
In the general ESB framework; Content-based router adopts static routing mechanism more; Router is understood the function of all application services, and the address information with service deposits in the router in advance, and router directly is transmitted to correct application system service according to routing table and service catalogue with output message.Machine-processed efficient like this is very high, but when system service changes, like increase, deletion, renewal etc., just must revise all routers, and this brings very big difficulty for the maintenance of system (system that especially often changes).
Summary of the invention
The technical problem that the present invention will solve is: the great difficulty that adopts static forwards mechanism to cause the router routing iinformation to be safeguarded, and can not adapt to the application system of frequent variations and the needs of agile development.
In order to solve the problems of the technologies described above; The present invention proposes the dynamic message method for routing in a kind of ESB; This method comprises the steps: that message router receives ISP's register requirement, and said message router is arrived in the service registry that said ISP provided; The message subscribing person is sent to subscribe request information the subscription table of said message router Dynamic Maintenance; Said message server sends to said message subscribing person based on routing table and said subscription table with said service.
Preferably, after said message router receives ISP's register requirement, judge whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
Preferably, the subscription table of said message router Dynamic Maintenance is meant that said message router generates automatically based on the instant notice from information on services in the said register requirement and login mechanism and upgrades said subscription table.
Preferably, said dynamic message route adopts the routing mode of content, comes dynamically to confirm the transmission destination of message automatically according to the content of message.
Preferably, said message router dynamically generates routing table, and dynamically updates routing table according to the feedback information of transmitting message.
Preferably, said message router dynamically generates routing table and specifically comprises:
Initialization step: the message flow processing engine is analyzed message flow, and message flow is write routing table entry;
Searching step: message router is confirmed institute's requested service according to the content of said subscription request message, inquires about said routing table and selects institute's requested service, if do not find institute's requested service, and the ISP who then confirms through said subscription table;
Add step: with ISP URI (Uniform Resource Identifier), generic resource identifier) add in the routing table.
Step of updating: said message router is confirmed the validity of routing iinformation according to the feedback result of transmitting message, carries out more new routing information.
Further; The present invention also provides the route device of the dynamic message in a kind of ESB; This device comprises: receiver module, be used for the register requirement that message router receives the ISP, and said message router is arrived in the service registry that said ISP provided; First sending module, the person that is used for the message subscribing is sent to subscribe request information the subscription table of said message router Dynamic Maintenance; Second sending module is used for said message server and based on routing table and said subscription table said service is sent to said message subscribing person.
Preferably, said receiver module comprises judge module, is used for after said message router receives ISP's register requirement, judging whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
Preferably, said first sending module comprises the subscription table maintenance module, is used for said message router and generates automatically based on the instant notice from the information on services of said register requirement and login mechanism and upgrade said subscription table.
Preferably, more comprise routing module, be used to make said dynamic message route to adopt content-based routing mode, and come dynamically to confirm the transmission destination of message according to the content of message automatically.
Preferably, more comprise the routing table generation module, be used to make said message router dynamically to generate routing table, and dynamically update routing table according to the feedback information of transmitting message.
Preferably, said routing table generation module specifically comprises:
Initialization module: be used for analyzing the result of message flow, message flow is write routing table entry according to the message flow processing engine;
Retrieval module: be used to make message router to confirm institute's requested service, inquire about said routing table and select institute's requested service according to the content of said subscription request message, if do not find institute's requested service, the ISP who then confirms through said subscription table;
Add module: be used for ISP URI (Uniform Resource Identifier) the generic resource identifier) add in the routing table.
Update module: be used to make said message router to confirm the validity of routing iinformation, carry out more new routing information according to the feedback result of transmitting message.
The invention has the beneficial effects as follows by means of content-based message route and message publish/subscribe pattern and realized a kind of dynamic message route method and device, solved the deficiency of static message routing mechanism on the ability of system maintenance and adaptation application change effectively.Method proposed by the invention has obtained application in the ESB of company of Intervision product I nterESB.Practice shows, this method down, has very high flexibility and adaptability in system service application complicated and changeable.
Description of drawings
Fig. 1 is a dynamic message method for routing schematic diagram content-based among the present invention;
Fig. 2 is a dynamic message method for routing flow chart content-based among the present invention;
Fig. 3 is the realization of dynamic message routing mechanism of the present invention in ESB;
The fundamental diagram of the content-based message router among Fig. 4 the present invention;
Fig. 5 is the flow chart that the message router among the present invention dynamically generates routing table;
Fig. 6 is the dynamic message route device schematic diagram in the ESB among the present invention;
Fig. 7 is the schematic diagram of the routing table generation module among the present invention.
Embodiment
Introduce dynamic message method for routing and device in the ESB of the present invention below in conjunction with accompanying drawing:
Fig. 1 has described the basic principle of dynamic message method for routing; Wherein, Router is the executive module of dynamic message route; Routing table and subscription table provide the dynamic data support for the message route, and the message subscribing person is published to subscription table with its service function, and according to the evolution updated at any time subscription table of serving.Preferred UDDI is as login mechanism in the wherein said dynamic router; UDDI is a distributed Internet service login mechanism; Collection is described (Universal Description), retrieval (Discovery) is an one with integrated (Integration); Comprised the standard criterion of service describing and discovery, belonged to prior art, so this paper repeats no more.Message Agent among the figure is the run entity of message-oriented middleware; It is the concrete realization of message message communicating models such as " subscription/publication "; It is the intermediary that message is transmitted; Be responsible for the reception and the distribution of message, and the forwarding transmission that between the network that a plurality of Message Agent are formed, realizes message, prior art belonged to.Adopted the platform of the message-oriented middleware product I nterMQ of company of Intervision among this paper embodiment, but be not limited to this as message subscribing/issue mechanism.Any message-oriented middleware product of subscription/publication model of having realized all can be suitable for.
Fig. 2 has described the workflow of dynamic message method for routing; Among the step S101, message router receives ISP's register requirement, and said message router is arrived in the service registry that said ISP provided; Among the step S102; The message subscribing person is sent to the subscription table of said message router Dynamic Maintenance with subscribe request information, and among the step S103, said message server sends to said message subscribing person based on routing table and said subscription table with said service.
Execution through above-mentioned steps; Can accomplish content-based message " subscription/publication ", wherein, message " subscription/publication " mechanism comprises one group of ISP and one group of service user; The ISP subscribes to their topics of interest to Message Agent; Be the service that they can provide, when the service user produced service request information and matches, corresponding ISP can obtain this message.
In the content-based message " subscription/publication ", message route and forwarding mechanism decide the addressing and the route of message according to the content of message.The sender of message destination information of specify message not in message, the final destination of message is by the interested subscriber of message content is decided.
Further, the said message router in step S101 receives after ISP's the register requirement, judges whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
Further, in step S102, the subscription table of said message router Dynamic Maintenance is meant that said message router generates automatically based on the instant notice from information on services in the said register requirement and login mechanism and upgrades said subscription table.
Above-mentioned subscription table is meant that the ISP is published to subscription table with the own all functions that can provide.Subscription table is being safeguarded directory index between ISP address and the service function.Router is according to message content or the pairing service function information of message, and then this serves corresponding ISP's address information to pass through the subscription table acquisition.In the concrete realization, message router can generate the service function tabulation according to the UDDI information of serviced component issue.During operation, router is confirmed service providers according to the content search subscription table of message.
Further, said dynamic message route adopts the routing mode of content, comes dynamically to confirm the transmission destination of message automatically according to the content of message.
Further; After the said step S103; Comprise: said message router dynamically generates routing table, and dynamically updates routing table according to the feedback information of transmitting message, wherein; Routing table is the routing table by a dynamic change of message router maintenance, service function and ISP's dynamic mapping.
Fig. 3 has described the realization of dynamic message routing mechanism in ESB, specifically is on the InterESB platform, to realize.Wherein, router is embodied as a service-Engine member, and the maintenance of subscription table realizes through the service registry administrative mechanism based on UDDI." publish/subscribe " of message realized through the InterMQ messenger service.
Fig. 4 has described the operation principle of content-based dynamic message router, as follows:
Service registry: new ISP through the service registry administrative mechanism with its function register to UDDI, simultaneously the descriptor according to service generates corresponding subscription list item, and adds subscription table to.
The deletion service: the ISP who is deleted nullifies its function register through the service registry administrative mechanism to the service of UDDI; Corresponding function list item in the deletion subscription table; Point to the routing iinformation of this service in the deletion routing table.
Service is upgraded: UDDI is arrived in the ISP who the changes functional description information updating that it is new; In the deletion subscription table with the corresponding list item of delete function; Add the subscription list item corresponding with what's new; Empty routing table.
The message route: router is confirmed the pairing service function of message according to message content; The retrieval routing table is confirmed ISP URI; If do not find corresponding service, then retrieve subscription table, confirm corresponding ISP; ISP URI is added in the routing table.
Further, as shown in Figure 5, said message router dynamically generates routing table and specifically comprises:
Initialization step S201: the message flow processing engine is analyzed message flow, and message flow is write routing table entry;
Searching step S202: message router is confirmed institute's requested service according to the content of said subscription request message, inquires about said routing table and selects institute's requested service, if do not find institute's requested service, and the ISP who then confirms through said subscription table;
Add step S203: ISP URI (Uniform Resource Identifier, generic resource identifier) is added in the routing table.
Step of updating S204: said message router is confirmed the validity of routing iinformation according to the feedback result of transmitting message, carries out more new routing information.
Fig. 6 has described and the corresponding dynamic message route device 1 of dynamic message method for routing of the present invention; It comprises; Receiver module 2 is used for the register requirement that message router receives the ISP, and said message router is arrived in the service registry that said ISP provided; First sending module 3, the person that is used for the message subscribing is sent to subscribe request information the subscription table of said message router Dynamic Maintenance; Second sending module 4 is used for said message server and based on routing table and said subscription table said service is sent to said message subscribing person.
Further, said receiver module 2 comprises judge module, is used for after said message router receives ISP's register requirement, judging whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
Further, said first sending module 3 comprises the subscription table maintenance module, is used for said message router and generates automatically based on the instant notice from the information on services of said register requirement and login mechanism and upgrade said subscription table.
Further, more comprise routing module, be used to make said dynamic message router to adopt the routing mode of content, and come dynamically to confirm the transmission destination of message according to the content of message automatically.
Further, more comprise the routing table generation module, be used to make said message router dynamically to generate routing table, and dynamically update routing table according to the feedback information of transmitting message.
Further, said routing table generation module as shown in Figure 7 specifically comprises:
Initialization module 5: be used for analyzing the result of message flow, message flow is write routing table entry according to the message flow processing engine;
Retrieval module 6: be used to make message router to confirm institute's requested service according to the content of said subscription request message; Inquire about said routing table and select institute's requested service; If do not find institute's requested service, the ISP who then confirms through said subscription table;
Add module 7: be used for ISP URI (Uniform Resource Identifier, generic resource identifier) is added in the routing table.
Update module 8: be used to make said message router to confirm the validity of routing iinformation, carry out more new routing information according to the feedback result of transmitting message.
Dynamic message method for routing of the present invention and dynamic message route device can be realized through any programming language; Like JAVA, C# or the like; Also can realize the integrated circuit of function corresponding through hardware language, above-mentioned each module also can distributedly operate on the different main frames.
Through dynamic message route method of the present invention and device; Solved the deficiency of static message routing mechanism on the ability of system maintenance and adaptation application change effectively; Alleviated user and developer's labour intensity greatly, made that application system is easy to safeguard more.
Specific embodiment described herein only is that the present invention's spirit is illustrated.Person of ordinary skill in the field of the present invention can make various modifications or replenishes or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.

Claims (10)

1. the dynamic message method for routing in the ESB is characterized in that this method comprises the steps:
Message router receives ISP's register requirement, and said message router is arrived in the service registry that said ISP provided;
The message subscribing person is sent to subscribe request information the subscription table of said message router Dynamic Maintenance;
Said message server sends to said message subscribing person based on routing table and said subscription table with said service.
2. method according to claim 1 is characterized in that: after said message router receives ISP's register requirement, judge whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
3. method according to claim 1 is characterized in that: the subscription table of said message router Dynamic Maintenance is meant that said message router generates automatically based on the instant notice from information on services in the said register requirement and login mechanism and upgrades said subscription table.
4. method according to claim 1 is characterized in that: said dynamic message route adopts the routing mode of content, comes dynamically to confirm the transmission destination of message automatically according to the content of message.
5. method according to claim 1 is characterized in that: said message router dynamically generates routing table, and dynamically updates routing table according to the feedback information of transmitting message;
Said message router dynamically generates routing table and comprises:
Initialization step: the message flow processing engine is analyzed message flow, and message flow is write routing table entry;
Searching step: message router is confirmed institute's requested service according to the content of said subscription request message, inquires about said routing table and selects institute's requested service, if do not find institute's requested service, then confirms the ISP through said subscription table;
Add step: ISP's URI is added in the routing table.
Step of updating: said message router is confirmed the validity of routing iinformation according to the feedback result of transmitting message, carries out more new routing information.
6. the dynamic message route device in the ESB is characterized in that this device comprises:
Receiver module is used for the register requirement that message router receives the ISP, and said message router is arrived in the service registry that said ISP provided;
First sending module, the person that is used for the message subscribing is sent to subscribe request information the subscription table of said message router Dynamic Maintenance;
Second sending module is used for said message server and based on routing table and said subscription table said service is sent to said message subscribing person.
7. device according to claim 7; It is characterized in that: said receiver module comprises judge module; Be used for after said message router receives ISP's register requirement; Judge whether said register requirement is legal, if then carry out said registration, if otherwise refuse said registration.
8. device according to claim 7; It is characterized in that: said first sending module comprises the subscription table maintenance module, is used for said message router and generates automatically based on the instant notice from the information on services of said register requirement and login mechanism and upgrade said subscription table.
9. device according to claim 7 is characterized in that: more comprise routing module, be used to make said dynamic message route to adopt content-based routing mode, and come dynamically to confirm the transmission destination of message according to the content of message automatically.
10. device according to claim 7 is characterized in that: more comprise the routing table generation module, be used to make said message router dynamically to generate routing table, and dynamically update routing table according to the feedback information of transmitting message;
Said routing table generation module comprises:
Initialization module: be used for analyzing the result of message flow, message flow is write routing table entry according to the message flow processing engine;
Retrieval module: be used to make message router to confirm institute's requested service, inquire about said routing table and select institute's requested service,, then confirm the ISP through said subscription table if do not find institute's requested service according to the content of said subscription request message;
Add module: be used for adding ISP's URI to routing table.
Update module: be used to make said message router to confirm the validity of routing iinformation, carry out more new routing information according to the feedback result of transmitting message.
CN2010105628682A 2010-11-29 2010-11-29 Dynamic message routing method and device for enterprise service bus Pending CN102480417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105628682A CN102480417A (en) 2010-11-29 2010-11-29 Dynamic message routing method and device for enterprise service bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105628682A CN102480417A (en) 2010-11-29 2010-11-29 Dynamic message routing method and device for enterprise service bus

Publications (1)

Publication Number Publication Date
CN102480417A true CN102480417A (en) 2012-05-30

Family

ID=46092901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105628682A Pending CN102480417A (en) 2010-11-29 2010-11-29 Dynamic message routing method and device for enterprise service bus

Country Status (1)

Country Link
CN (1) CN102480417A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357143A (en) * 2015-11-27 2016-02-24 华为技术有限公司 Forwarding method and service routing relay node
CN106059953A (en) * 2016-05-09 2016-10-26 乐视控股(北京)有限公司 Message routing method, device and system
CN106385435A (en) * 2016-08-30 2017-02-08 乐视控股(北京)有限公司 Service treatment method and system of service system
CN106682165A (en) * 2016-12-26 2017-05-17 深圳中兴网信科技有限公司 Automatic routing method and automatic routing system
CN112688998A (en) * 2020-12-17 2021-04-20 中国航空工业集团公司成都飞机设计研究所 Configurable main data subscription pushing method with permission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859395A (en) * 2006-02-21 2006-11-08 华为技术有限公司 Service realizing system and method for IP multimedia subsystem
CN101159710A (en) * 2007-11-06 2008-04-09 中国科学院计算技术研究所 Service combination searching method and system of structure facing to service
US20100057835A1 (en) * 2008-08-29 2010-03-04 Mark Cameron Little Information on availability of services provided by publish-subscribe service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859395A (en) * 2006-02-21 2006-11-08 华为技术有限公司 Service realizing system and method for IP multimedia subsystem
CN101159710A (en) * 2007-11-06 2008-04-09 中国科学院计算技术研究所 Service combination searching method and system of structure facing to service
US20100057835A1 (en) * 2008-08-29 2010-03-04 Mark Cameron Little Information on availability of services provided by publish-subscribe service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李秀林: "基于动态消息路由的ESB应用集成框架的研究与应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357143A (en) * 2015-11-27 2016-02-24 华为技术有限公司 Forwarding method and service routing relay node
CN105357143B (en) * 2015-11-27 2019-10-01 华为技术有限公司 A kind of retransmission method and service routing relay node
CN106059953A (en) * 2016-05-09 2016-10-26 乐视控股(北京)有限公司 Message routing method, device and system
CN106385435A (en) * 2016-08-30 2017-02-08 乐视控股(北京)有限公司 Service treatment method and system of service system
CN106682165A (en) * 2016-12-26 2017-05-17 深圳中兴网信科技有限公司 Automatic routing method and automatic routing system
CN112688998A (en) * 2020-12-17 2021-04-20 中国航空工业集团公司成都飞机设计研究所 Configurable main data subscription pushing method with permission
CN112688998B (en) * 2020-12-17 2023-03-14 中国航空工业集团公司成都飞机设计研究所 Main data subscription pushing method capable of configuring with permission

Similar Documents

Publication Publication Date Title
RU2432610C2 (en) Managing extended collections of presence
RU2432613C2 (en) Managing improved collections of presence
US7069318B2 (en) Content tracking in transient network communities
JP5535067B2 (en) Ubiquitous presence service method and system for providing various application states based on 3A
CN102202102B (en) Network service polymerization system and polymerization method thereof based on cloud computing configuration
RU2409846C2 (en) Organising resources into collections to facilitate efficient and reliable resource access
US7039701B2 (en) Providing management functions in decentralized networks
US7181536B2 (en) Interminable peer relationships in transient communities
US20030217140A1 (en) Persisting node reputations in transient communities
US20030187974A1 (en) Broadcast tiers in decentralized networks
US20030187973A1 (en) Managing storage resources in decentralized networks
US7051073B1 (en) Method, system and program for efficiently distributing serial electronic publications
US20070239866A1 (en) Managing Rich Presence Collections
CN102047243A (en) Request routing based on class
US8768886B2 (en) Using AMQP for replication
CN102047242A (en) Content management
US8082296B2 (en) Bus system
US20110145320A1 (en) Message bus based replication
CN102480417A (en) Dynamic message routing method and device for enterprise service bus
EP1491026B1 (en) Dynamic addressing in transient networks
US20140310375A1 (en) Network node apparatus for information-centric networking and operating method of the network node apparatus
CN101551888A (en) Advertising information release system and corresponding method for controlling advertisement release
Tarkoma et al. State of the art review of distributed event systems
WO2011032470A1 (en) System for service user data management and method thereof for realizing service user data management
Radenkovic et al. Life science grid middleware in a more dynamic environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120530