CN109428745B - JMS message forwarding method, device, electronic equipment and storage medium - Google Patents

JMS message forwarding method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109428745B
CN109428745B CN201710731251.0A CN201710731251A CN109428745B CN 109428745 B CN109428745 B CN 109428745B CN 201710731251 A CN201710731251 A CN 201710731251A CN 109428745 B CN109428745 B CN 109428745B
Authority
CN
China
Prior art keywords
jms
omc
message forwarding
message
forwarding device
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.)
Active
Application number
CN201710731251.0A
Other languages
Chinese (zh)
Other versions
CN109428745A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201710731251.0A priority Critical patent/CN109428745B/en
Publication of CN109428745A publication Critical patent/CN109428745A/en
Application granted granted Critical
Publication of CN109428745B publication Critical patent/CN109428745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement
    • H04L41/5093Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement wherein the managed service relates to messaging or chat services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement
    • H04L41/5096Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement wherein the managed service relates to distributed or central networked applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a JMS message forwarding method, a JMS message forwarding device, electronic equipment and a storage medium. The method comprises the steps that a Java message service JMS message forwarding device receives a control message sent by an operation maintenance terminal OMT, wherein the control message comprises the name of an operation maintenance center OMC to be controlled, and the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs; and the JMS message forwarding device sends the control message to the OMC through a JMS link between the JMS message forwarding device and the OMC, periodically polls the centralized OMC management system whether the information of the newly added OMC exists or not, and if so, creates the JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC. According to the method, the releasing function of the JMS message forwarding device is expanded, so that the JMS message forwarding device comprises JMS links between the JMS message forwarding device and a plurality of OMCs, frequent switching to OMTs corresponding to the OMCs is not needed, and the control of the OMCs can be realized by only logging in one OMT.

Description

JMS message forwarding method, device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a JMS message forwarding method, a JMS message forwarding device, electronic equipment and a storage medium.
Background
The OMC (Operation and Maintenance Center) is a set of system for network element management, and is responsible for management of network element configuration, Operation and Maintenance, and the like, and receives alarm messages and configuration changes reported by the network element.
The OMT (Operation Maintenance Terminal) is a client system of the OMC system and is responsible for managing the OMC system.
Fig. 1 shows a prior art OMC zoning independent deployment message link diagram.
As shown in fig. 1, in the prior art, an OMC system adopts distributed deployment, OMCs in various areas and the OMT system are deployed and operated independently, and Service interfaces including JMS (Java Message Service) all adopt a one-to-one client/server mode.
The OMC is independently deployed in a subarea (such as a local city level), and the distributed mode is characterized in that an OMC system is physically deployed according to regional distribution, so that the requirement of network element equipment on independent management according to slices is met.
In a region, one OMC and a plurality of OMTs are set, that is, in a partitioned region, one OMC can be managed by a plurality of OMTs together, and the OMCs of the partitioned regions manage network elements.
The OMT comprises a JMS message forwarding device, the JMS message forwarding device is responsible for carrying out TCP (Transmission Control Protocol) connection with JMS services in the OMC, the OMC system has various services, and the JMS services are seed services of the OMC system. That is, the JMS message forwarding apparatus is middleware for the OMT system to interact with the OMC system.
OMT system adopts ' Pub/Sub ' mode ' to send command message of net element device or subscribe alarm message reported by net element device to specific Topic (Topic) through JMS message forwarding device, and forwards command/alarm message to OMT system through asynchronous interface.
The deployment in the prior art has the following technical problems:
each JMS message forwarding apparatus internal interface is designed to subscribe to a message of a JMS service (HornetQ), for example, OMT1-1 and OMT1-2 deployed in area 1 can receive a device message sent by OMC1, but cannot receive a message sent by OMC2, and similarly, OMT2-1 and OMT2-2 cannot receive a message sent by OMC 1; each JMS message forwarding device can also issue messages to the JMS service of only one OMC system.
When the OMT controls a plurality of OMCs, such as the OMCs of the whole province, the OMT needs to be switched to a certain OMT of the area 1 to check the OMC1 of the area 1, and similarly, the OMT needs to be switched to a certain OMT of the area 2 to check the OMC2 of the area 2, and the OMTs need to be switched for many times, so that the OMTs can control a plurality of OMCs, network element conditions of the plurality of OMCs cannot be concerned at the same time, and great inconvenience is brought to use.
At present, the prior art has no corresponding method for solving the problems.
Disclosure of Invention
Aiming at the defects of the prior art, the embodiment of the invention provides a JMS message forwarding method, a JMS message forwarding device, an electronic device and a storage medium.
In one aspect, an embodiment of the present invention provides a method for forwarding a JMS message, where the method includes:
a Java message service JMS message forwarding device receives a control message sent by an operation maintenance terminal OMT, wherein the control message comprises the name of an operation maintenance center OMC to be controlled, and the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
the JMS message forwarding device sends the control message to the OMC through a JMS link between the JMS message forwarding device and the OMC;
and the JMS message forwarding device periodically polls the centralized OMC management system whether the information of the newly added OMC exists, and if so, creates a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
In another aspect, an embodiment of the present invention provides a JMS message forwarding apparatus, where the apparatus includes:
the system comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving a control message sent by an operation maintenance terminal OMT, the control message comprises the name of an operation maintenance center OMC to be controlled, and a JMS message forwarding device comprises a pre-established JMS link between the JMS message forwarding device and a plurality of OMCs;
a first sending module, configured to send the control message to the OMC through a JMS link between the JMS message forwarding apparatus and the OMC;
and the first creating module is used for periodically polling the centralized OMC management system to determine whether the information of the newly added OMC exists, and if so, creating a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
In another aspect, an embodiment of the present invention further provides an electronic device, which includes a first memory, a first processor, a bus, and a computer program that is stored in the first memory and is executable on the first processor, where the first processor implements the above steps when executing the computer program.
In another aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a first processor to implement the above steps.
In another aspect, an embodiment of the present invention provides a method for forwarding a JMS message, where the method includes:
a JMS message forwarding device receives a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding device and the OMC, wherein the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
the JMS message forwarding device sends the network element message to an OMT corresponding to the JMS message forwarding device;
the JMS message forwarding device periodically polls the centralized OMC management system whether the information of the newly added OMC exists, and if so, a JMS link between the JMS message forwarding device and the newly added OMC is established according to the information of the newly added OMC.
On the other hand, an embodiment of the present invention provides a JMS message publishing apparatus, where the apparatus includes:
a second receiving module, configured to receive, by a JMS message forwarding apparatus, a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding apparatus and the OMC, where the JMS message forwarding apparatus includes pre-established JMS links between the JMS message forwarding apparatus and multiple OMCs;
a second sending module, configured to send the network element message to an OMT corresponding to the JMS message forwarding apparatus;
and the second creating module is used for periodically polling the centralized OMC management system to determine whether the information of the newly added OMC exists, and if so, creating a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
On the other hand, the embodiment of the present invention further provides an electronic device, which includes a second memory, a second processor, a second bus, and a computer program stored in the second memory and executable on the second processor, where the second processor implements the above steps when executing the computer program.
In another aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a second processor to implement the steps of the above method.
As can be seen from the foregoing technical solutions, in the method, by expanding the release function of the JMS message forwarding apparatus, the JMS message forwarding apparatus includes a JMS link between a plurality of OMCs, and can interact with the plurality of OMCs, so that the plurality of OMCs can be controlled by logging in only one OMT without frequently switching to the OMT corresponding to the OMC, and a newly added OMC is effectively detected in real time by a service monitoring manner, so that the corresponding JMS link is established in real time, and the problem that the OMT cannot receive a newly added OMC system message in real time is effectively solved.
Drawings
Fig. 1 is a schematic diagram of a prior art OMC zoning independent deployment message link;
fig. 2 is a schematic flowchart of a JMS message forwarding method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a JMS message forwarding method according to another embodiment of the present invention;
fig. 4 is a logic structure diagram of a JMS message forwarding apparatus of a JMS message forwarding method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a JMS message publisher of a JMS message forwarding method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a JM message subscriber of a JMS message forwarding method according to an embodiment of the present invention;
fig. 7 is a service processing flow chart of a JMS message forwarding method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a JMS message forwarding apparatus according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a JMS message forwarding apparatus according to another embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
The application scenarios in the embodiments of the present invention may be various, and one of them is taken as an example for description.
Each sub-area comprises a plurality of OMTs and an OMC, the OMTs manage one OMC together, and the OMC manages the network elements of the sub-area.
The management process of the OMT is divided into two situations, one is a message publishing process, the OMT sends a control message to the OMC, the other is a message subscribing process, and the OMC sends a network element message to the OMT.
In a first scenario, when an OMT needs to control a plurality of OMCs, the OMCs include an OMC in a sub-region that is the same as or different from a sub-region where the OMT is located, and the OMT sends a control message to the OMC, where the control message includes an OMC name, so as to control the OMCs.
The embodiment of the present invention is explained based on the first scenario.
Description of the terms of the embodiments of the invention:
JMS is a J2EE message service specification that provides Java programs with a common way to create, send, receive, and read messages in an enterprise message system, which is a collection of interfaces and associated semantics through which it is defined how JMS clients (e.g., OMT and OMC) access the message system.
Distributed OMC (Operation and Maintenance Center): the OMC is a system for managing the network element, is responsible for the management of the configuration, the operation maintenance and the like of the network element, and receives the alarm message and the configuration change reported by the network element, and is characterized in that the OMC system is physically distributed and deployed according to the area, so that the requirement of the network element equipment for managing independently according to the slices is realized, and each sub-area comprises one OMC.
The OMT is a client system of the OMC system and is responsible for managing the OMC system, and each subarea comprises at least one OMT.
Fig. 2 is a flowchart illustrating a JMS message forwarding method according to an embodiment of the present invention.
As shown in fig. 2, the method provided in the embodiment of the present invention specifically includes the following steps:
step 11, a Java message service JMS message forwarding device receives a control message sent by an operation maintenance terminal OMT, where the control message includes a name of an operation maintenance center OMC to be controlled, and the JMS message forwarding device includes a JMS link between the JMS message forwarding device and multiple OMCs, which is established in advance.
The embodiment of the present invention is described by taking an example in which one OMC is set for each partition area.
Optionally, the control message is used to control the OMC to be controlled.
Optionally, when the OMT needs to control a certain OMC, and the OMC is the same as the OMC in the same sub-region, the OMT may be controlled by using a method in the prior art.
Optionally, when the OMT needs to control the OMC in a different sub-region from the OMT, the OMT may be controlled by using the method of the embodiment of the present invention:
optionally, the OMT generates the control message, and sends the control message to the JMS message forwarding apparatus.
Optionally, the JMS message forwarding apparatus is used for middleware for the OMT to interact with the OMC, and is also called a JMS connector, and is disposed in the OMT.
Optionally, the JMS message forwarding apparatus includes a centralized JMS message publisher for publishing messages to the plurality of OMCs.
Optionally, the JMS link is a connection mode of the OMT and the JMS service of the OMC, and may be pre-established before the OMC interacts with the OMT, and one JMS link connects one JMS message forwarding device and one OMC.
In the embodiment of the invention, the issuing function of the JMS message forwarding device interface is expanded, so that the JMS message forwarding device comprises a plurality of JMS links which can respectively interact with a plurality of OMCs.
It should be noted that, unlike the prior art, which can only be controlled by the OMT in the same sub-area as the OMC, the JMS message forwarding apparatus of the OMT only establishes a connection with one JMS service, that is, only one fixed OMC in the sub-area corresponding to the OMT, and only one JMS link exists, when the OMCs in different sub-areas need to be controlled, the OMTs in the sub-areas corresponding to the OMCs need to be switched, and then the control messages are sent. In this step, when the OMT needs to control a certain OMC, it is not necessary to consider whether the OMC is in the same partition area. Because the JMS message forwarding device comprises JMS links between the JMS message forwarding device and the OMCs and different partition areas where the OMCs are located, the OMT of a certain partition area can control not only the OMC of the same partition area but also the OMCs of other partition areas.
And step 12, the JMS message forwarding device sends the control message to the OMC through a JMS link between the JMS message forwarding device and the OMC.
Optionally, the JMS message forwarding apparatus performs initial parsing on the received control message to obtain the name of the OMC.
Optionally, the JMS message forwarding apparatus searches, according to the name of the OMC, a JMS link corresponding to the OMC from JMS links between the JMS message forwarding apparatus and multiple OMCs that are established in advance.
Optionally, the sending of the control message to the OMC through the obtained JMS link may be performed in a manner of the prior art.
Optionally, after receiving the control message, the OMC controls a network element according to the control message.
And step 13, the JMS message forwarding device periodically polls the centralized OMC management system whether the information of the newly added OMC exists, and if so, a JMS link between the JMS message forwarding device and the newly added OMC is established according to the information of the newly added OMC.
Optionally, the information of the newly added OMC refers to information about a newly deployed OMC after a set of OMC is newly deployed.
Optionally, the centralized OMC management system is configured to manage system information of each OMC, such as deployment conditions of the OMCs, connection protocols, and the like.
Optionally, in the embodiment of the present invention, a centralized registration tool is deployed, and after a set of OMC system is newly deployed, the system information of the OMC needs to be registered in the centralized OMC management system through the centralized registration tool.
Optionally, the JMS message forwarding apparatus has a monitoring service, polls the OMC service management system according to a monitoring service period, and creates a JMS link between the JMS message forwarding apparatus and the OMC in real time when new OMC information is monitored online.
It can be understood that, before the JMS message forwarding apparatus of the embodiment of the present invention is enabled, an initialization process is required, where the initialization process refers to a process of establishing JMS links with all OMCs in areas of an existing network when each OMT is initially started.
In the process, the JMS message forwarding apparatus performs a series of initial processes of creating an object, which mainly includes establishing a JMS link, creating a message publisher (message generator), creating a message subscriber (message consumer), starting a message publisher processing thread and a message subscriber processing thread, starting a centralized JMS message forwarding apparatus listening service, and the like.
The JMS message forwarding provided by this embodiment has at least the following technical effects:
the releasing function of the JMS message forwarding device is expanded, so that the JMS message forwarding device comprises JMS links between the JMS message forwarding device and a plurality of OMCs, can interact with the OMCs, does not need to be frequently switched to OMTs corresponding to the OMCs, and can realize the control of the OMCs by only logging in one OMT.
The newly added OMC is effectively detected in real time in a service monitoring mode, so that a corresponding JMS link is established in real time, and the problem that the OMT cannot receive the newly added OMC system message in real time is effectively solved.
As shown in fig. 2, on the basis of the foregoing embodiment, in the JMS message forwarding provided by another embodiment of the present invention, there are various ways for sending the control message to the OMC in step 12 of the method, and this embodiment takes one way as an example for description.
Optionally, step 12 specifically includes:
the JMS message forwarding device caches the control message to a sending buffer team according to the name of the OMC in a classified manner according to a first-in first-out principle;
and acquiring the control message from the first sending buffer queue, and sending the control message to the OMC through the JMS link.
Optionally, the JMS message forwarding apparatus performs initial analysis on a "centralized message body" issued by the centralized OMT system, and obtains the name of the OMC.
Optionally, the JMS message forwarding device classifies according to the message Topic. And calling a centralized OMC service management system through an RMI (Remote invocation) interface to map a message header OMC name into an OMC server IP address, and caching a message to be sent into a first sending buffer queue according to the OMC name and a first-in first-out principle.
RMI is a remote method invocation mechanism that enables objects on one Java virtual machine to invoke methods of objects in another Java virtual machine.
The JMS message forwarding device periodically acquires a message body from the head of the first sending buffer queue by adopting a fixed frequency and then sends the message body to the background OMC service.
Other steps of this embodiment are similar to those of the previous embodiment, and are not described again in this embodiment.
The JMS message forwarding provided by this embodiment has at least the following technical effects:
the sending buffer queues are classified according to the OMC names, the strategy can ensure that each OMC service at the back end receives control messages in time and orderly, and meanwhile, the strategy creates a buffer area for the JMS message forwarding device to execute sending, so that the problem of message bottleneck is effectively solved.
And when the network element has messages to be reported, the network element reports the network element messages to the OMCs of the corresponding sub-areas, and the OMCs forward the network element messages to any OMT, wherein the OMT comprises the OMTs of the same or different sub-areas as the OMCs, so that the OMTs can obtain the network element messages of a plurality of OMCs.
The embodiment of the present invention is explained based on the second scenario.
Fig. 3 is a schematic flow chart of JMS message forwarding according to another embodiment of the present invention.
As shown in fig. 3, a method for forwarding a JMS message provided in an embodiment of the present invention includes:
step 31, a JMS message forwarding device receives a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding device and the OMC, where the JMS message forwarding device includes pre-established JMS links between the JMS message forwarding device and multiple OMCs.
The embodiment of the present invention is described by taking an example in which one OMC is set for each partition area.
Alternatively, when the OMC forwards the network element message to the OMT in the same partition as the OMC, the OMC can be implemented in the manner of the prior art.
Optionally, when the OMT forwards the network element message to the OMT in the different partition area where the OMC is located, the method of the embodiment of the present invention may be adopted to implement:
optionally, the JMS message forwarding apparatus receives a network element message reported from the distributed OMC system,
optionally, the network element message is configured to report device information of a network element, where the device information includes a name of the OMC and a name of the network element.
Optionally, the JMS message forwarding apparatus is used for middleware for the OMT to interact with the OMC, and is also called a JMS connector, and is disposed in the OMT.
Optionally, the JMS message forwarding apparatus includes a centralized JMS message subscriber, and the centralized JMS message subscriber is configured to send the network element message to an OMT that subscribes to the network element message.
Optionally, the JMS link is a connection mode of the OMT and the JMS service of the OMC, and may be pre-established before the OMC interacts with the OMT, and one JMS link connects one JMS message forwarding device and one OMC.
Optionally, the JMS message forwarding apparatus may interact with the OMC, and a JMS link between the JMS message forwarding apparatus and the OMC needs to be established in advance. When the JMS message forwarding device receives a network element message sent by a JMS link, the name of the OMC corresponding to the JMS link can be determined.
In the embodiment of the invention, the issuing function of the JMS message forwarding device interface is expanded, so that the JMS message forwarding device can respectively establish JMS links with a plurality of OMCs.
It should be noted that, unlike the prior art in which the OMC can only report the network element message to the OMT in the same sub-area as the OMC is located, the JMS message forwarding apparatus of the OMT only establishes a connection with one JMS service, that is, only one fixed OMC in the sub-area corresponding to the OMT, and only one JMS link exists, when it is desired to pay attention to multiple OMCs, it is necessary to switch to the OMT in the sub-area corresponding to the OMC, and then only the OMC in the sub-area can be paid attention to. In this step, the JMS message forwarding apparatus can not only receive the OMC report network element message of the same partition, but also receive the OMC report network element messages of other partitions, so that a certain OMT can receive the network element messages of the OMCs of multiple partitions, and only one OMT that can pay attention to the network element messages of multiple partitions is logged in.
And step 32, the JMS message forwarding device sends the network element message to the OMT corresponding to the JMS message forwarding device.
Optionally, the method of the prior art may be adopted by the JMS message forwarding apparatus to send the network element message to the OMT corresponding to the JMS message forwarding apparatus.
Optionally, the OMT receives the network element message, so as to control a network element of the OMC. And when the OMT receives the network element messages of the plurality of subareas, the network elements of the plurality of subareas can be controlled.
Step 13, the JMS message forwarding device periodically polls a centralized OMC management system whether the information of the OMC is newly added or not; and if so, establishing a JMS link between the JMS message forwarding device and the newly-added OMC according to the information of the newly-added OMC.
Optionally, the information of the newly added OMC refers to information about a newly deployed OMC after a set of OMC is newly deployed.
Optionally, the centralized OMC management system is configured to manage system information of each OMC, such as deployment conditions of the OMCs, connection protocols, and the like.
Optionally, in the embodiment of the present invention, a centralized registration tool is deployed, and after a set of OMC system is newly deployed, the system information of the OMC needs to be registered in the centralized OMC management system through the centralized registration tool.
Optionally, the JMS message forwarding apparatus has a monitoring service, polls the OMC service management system according to a monitoring service period, and creates a JMS link between the JMS message forwarding apparatus and the OMC in real time when new OMC information is monitored online.
It can be understood that, before the JMS message forwarding apparatus of the embodiment of the present invention is enabled, an initialization process is required, where the initialization process refers to a process of establishing JMS links with all OMCs in areas of an existing network when each OMT is initially started.
In the process, the JMS message forwarding apparatus performs a series of initial processes of creating an object, which mainly includes establishing a JMS link, creating a message publisher (message generator), creating a message subscriber (message consumer), starting a message publisher processing thread and a message subscriber processing thread, starting a centralized JMS message forwarding apparatus listening service, and the like.
The JMS message forwarding provided by this embodiment has at least the following technical effects:
by expanding the release function of the JMS message forwarding device, the JMS message forwarding device comprises JMS links between the JMS message forwarding device and a plurality of OMCs and can interact with the OMCs, so that a certain OMT can obtain network element information of the OMCs, and the subsequent OMTs can control the OMCs.
The newly added OMC is effectively detected in real time in a service monitoring mode, so that a new JMS link is established in real time, and the problem that the OMT cannot receive the newly added OMC system message in real time is effectively solved.
As shown in fig. 3, on the basis of the foregoing embodiment, in the JMS message forwarding provided by another embodiment of the present invention, the network element message includes a name of a Topic, and in step 42 of the method, there are various ways in which the JMS message forwarding apparatus sends the network element message to the OMT corresponding to the JMS message forwarding apparatus.
Optionally, step 13 specifically includes:
the JMS message forwarding device caches the network element messages to a second sending buffer queue according to the name of the Topic in a classified manner according to a first-in first-out principle;
and obtaining the network element message from the second sending buffer queue, and sending the network element message to the OMT corresponding to the JMS message forwarding device.
The centralized JMS message subscriber of the JMS message forwarding device can receive network element messages reported by all OMC systems deployed in a distributed manner at the back end in principle, and can classify the messages according to message topics Topic.
In order to improve the efficiency of receiving messages, the JMS message forwarding device can immediately place the received messages into a message buffer area, wherein the message buffer area comprises a second sending buffer queue, otherwise, the OMC can slow down the message pushing speed, and in severe cases, JMS service message backlog can be caused.
The message buffer area is designed as a second sending buffer queue of the memory queue classified according to the topics, namely, the concurrent reception of messages among different topics is realized, the messages of the same Topic are received orderly according to the principle of first-in first-out, and the purpose of this is to ensure the orderly reception and processing of the same class of messages by the centralized OMT. The message source reverse parser periodically extracts messages from the message buffer.
After obtaining the OMC name, the JMS message forwarding device sets the OMC name in the message header information and forwards the OMC name to the centralized OMT, so that the centralized OMT can accurately position the message source and correctly process the message source.
Other steps of this embodiment are similar to those of the previous embodiment, and are not described again in this embodiment.
The JMS message forwarding provided by this embodiment has at least the following technical effects:
the JMS message forwarding device puts the received network element message into a second sending buffer queue, so that the efficiency of receiving the network element message can be improved.
In order to more fully understand the technical content of the present invention, the JMS message forwarding provided by the present embodiment is explained in detail on the basis of the above embodiments.
In the prior art, a one-to-one client/server system architecture is adopted between a JMS message forwarding device and a JMS service, so that the mutual isolation of messages between regions is technically analyzed, the message data interaction between the regions cannot be realized, and the JMS message forwarding device does not adapt to the requirement of a centralized JMS message component in the interface design, and specifically has the following two disadvantages:
(1) the JMS message forwarding device in the original scheme can not establish connection with a plurality of JMS services at the same time, subscribe the messages of the plurality of JMS servers or publish the messages to the plurality of JMS services.
(2) The JMS message forwarding device in the original scheme can not increase or decrease the connection with JMS service on line, and dynamic update of the message subscriber is realized.
From the above analysis of the disadvantages, the original JMS message forwarding apparatus is not good enough in terms of interface design, and cannot meet the requirement of "convergence of multiple message source data". Therefore, a set of more complete JMS message forwarding device schemes needs to be designed, which can not only meet the technical requirement of "one-to-many" but also ensure the online update of the message source.
In order to make up for the defects and shortcomings of the JMS message forwarding device in the original scheme, the original scheme is designed and optimized.
Description of the terms of the embodiments of the invention:
topic: the JMS specifies the destination address of the message in a 'publish/subscribe' model, and the model allows a plurality of consumers to subscribe to the message of the same address, thereby realizing the message broadcasting function.
The message publisher: the object in the JMS specification "publish/subscribe" model for publishing messages to JMS services specifying a Topic address is created by a JMS Connection (Connection) object.
The message subscriber: the object in the JMS specification "publish/subscribe" model for consuming JMS messages specifying the Topic address is created by a JMS Connection (Connection) object.
Centralized OMT (Operation Maintenance Terminal): the OMT is a client system of the OMC system, namely an operation maintenance terminal, the centralized characteristic supports centralized management of a multi-area OMC system of the same manufacturer, and a user can realize management of the whole-area managed network element on the premise of not switching systems and interfaces by logging in any OMT system.
Fig. 4 is a logic structure diagram of a JMS message forwarding apparatus of a JMS message forwarding method according to an embodiment of the present invention.
As shown in fig. 4, the JMS message forwarding apparatus, also called JMS connector, in the new scheme implements a "one-to-many" message subscription and publishing scheme, that is, the centralized OMT can subscribe to a plurality of OMC system network element messages deployed in a distributed manner at the back end through the new scheme, and can issue control messages to these OMC systems at the same time. Meanwhile, the new scheme also has the capacity of ' JMS connection on-line capacity expansion ', when a set of OMC system is newly added in real time manually, only the information of the OMC system needs to be registered into a ' centralized OMC service management system ' through an ' OMC service register ', and when the ' JMS service monitoring module ' polls the OMC information, a ' polling thread triggers a JMS connection establishing event asynchronously, so that the dynamic capacity expansion of a JMS connection pool is realized by the method.
The main functional modules of the centralized JMS message forwarding device comprise: the system comprises a JMS message subscriber, a JMS message publisher, a JMS link management module and a JMS service monitoring module. The JMS link management module is used for creating a Connection object, a JMS message subscriber module and a JMS message publisher module; the JMS service monitoring module is used for monitoring the deployment of a new OMC system in a real-time polling mode, so that after new OMC system information (OMC name, IP address and the like) is acquired, the JMS link management module is triggered to create a Connection object; the JMS message publisher is used for accurately and unmistakably issuing various control commands of the centralized OMT to the corresponding OMC system; the JMS message subscriber is used for collecting all the OMC system network element messages deployed in a distributed mode and then forwarding the collected OMC system network element messages to the centralized OMT system in a centralized mode.
In summary, the centralized JMS message forwarding apparatus well solves the technical requirements of the centralized OMT on asynchronous messages, i.e. realizes message centralized subscription and issuing of routing control command messages for multi-region network element devices; meanwhile, the function of 'JMS connection online capacity expansion' makes it very easy to dynamically deploy the OMC system online, i.e. the centralized OMT can receive or release the network element message of the new OMC system without restarting. The JMS message publisher and the JMS message subscriber realize two important modules of the centralized JMS message forwarding apparatus, and the internal structure and the working principle process thereof are described in detail below.
JMS message publisher
Fig. 5 shows a schematic structural diagram of a JMS message publisher of a JMS message forwarding method according to an embodiment of the present invention.
As shown in fig. 5, the centralized JMS message publisher is used to publish various control command messages of the centralized OMT system to the distributed OMC system corresponding to the backend.
The centralized JMS message publisher module structure is divided into three major parts, namely a message source resolver, a message sender and a message sending queue. The message source resolver mainly has the functions of performing primary resolution on a centralized message body issued by a centralized OMT system, calling a centralized OMC service management system through an RMI (remote management interface) to map a message header OMC name into an OMC server IP (Internet protocol) address, and caching a message to be sent into a corresponding queue according to the OMC name and a first-in first-out principle. The message senders are created by a 'JMS link management' module in the figure 4 according to the 'OMC name' classification, namely, each message sender uniquely corresponds to one background OMC service. And the message sender which is successfully created acquires the message body from the head of the corresponding message queue periodically by adopting a fixed frequency and then sends the message body to the background OMC service. The message sending queues are classified according to the OMC names, the strategy can ensure that each OMC at the back end serves received messages in time and orderly, and meanwhile, a buffer area is created between the message source parser and the message sender, so that the problem of message bottleneck is effectively solved.
JMS message subscriber
Fig. 6 shows a schematic structural diagram of a JM message subscriber of a JMS message forwarding method according to an embodiment of the present invention.
As shown in fig. 6, the centralized JMS message subscriber is used to monitor the network element messages reported by the OMC system deployed in a distributed manner at the back end, and forward the network element messages to the centralized OMT system according to the message source classification.
The centralized JMS message subscriber module structure is divided into three major parts, namely a message source reverse parser, a message receiver and a message buffer. The message receiver is created in a centralized manner by the "JMS link management" module in fig. 4, and in principle, the receiver receives all network element messages reported by the OMC system deployed in a distributed manner at the back end, and classifies the messages according to the message Topic. In order to improve the efficiency of the message receiver for receiving the message, the message receiver can immediately place the received message into a message buffer, otherwise, the message pushing speed of the JMS server is reduced, and the JMS service message backlog is caused in serious cases. The message buffer area is designed as a memory queue classified according to the topics, namely, the concurrent reception of messages among different topics is realized, the messages of the same Topic are received orderly according to the principle of first-in first-out, and the purpose of this is to ensure the orderly reception and processing of the same class of messages by the centralized OMT. The message source reverse resolver periodically extracts messages from a message buffer area, obtains a message source address by creating a TCP (Connection) Connection of a message receiver, then calls a centralized OMC service management system through an RMI (remote management interface) interface to reversely map the message source address to an OMC name, sets the OMC name in message header information and forwards the message header information to the centralized OMT, and therefore the centralized OMT can accurately position a message source and correctly process the message source.
Fig. 7 shows a service processing flow chart of a JMS message forwarding method according to an embodiment of the present invention.
The service processing of the centralized JMS message forwarding device comprises four processes of an initialization process, a message publishing process, a message subscription process and an online registration OMC connection establishing process, and a processing sequence chart of each process is shown in the figure.
1. Initialization procedure timing
The initialization process is a process of establishing JMS links with all existing OMC systems when the centralized OMT is started for the first time, in the process, the centralized JMS message forwarding device performs a series of initial processes of creating objects, and the main processes are as follows:
(1) centralized OMT system triggering and creating centralized JMS message forwarding device
(2) The centralized JMS message forwarding device acquires all registered OMC system information from the centralized management system.
(3) The centralized JMS message forwarding apparatus cyclically creates a JMS Connection object (Connection) connected to each OMC system.
(4) The centralized JMS message forwarding device circularly creates a message publisher (message generator) with designated Topic on each Connection object according to the system configuration.
(5) The centralized JMS message forwarding device circularly creates a message subscriber (message consumer) with designated Topic on each Connection object according to the system configuration.
(6) Message publisher and subscriber processing threads are initiated.
(7) And starting the centralized JMS message forwarding device to monitor the service.
2. Message publishing process sequence
The message issuing process mainly receives control command messages issued to the network element equipment from the centralized OMT, and correctly sends the messages to a specified OMC system according to a certain process rule, and the main process is as follows:
(1) and the centralized OMT assembles the pre-sent message and calls an interface of a centralized JMS message forwarding device to send the message.
(2) The centralized message publisher invokes the centralized OMC management system to map the message destination IP address.
(3) The centralized message publisher stores the messages into the send buffer queue in accordance with the OMC name.
(4) Waking up a blocked messaging thread
(5) And the sending thread traverses the sending buffer queues and acquires the head message from each queue to send.
(6) A pair of PV operation threads which are mutually blocked-awakened is formed between (1) and (5), and the sending thread cycle is always alive.
3. Message subscription processing timing
The message subscription processing flow mainly receives the network element equipment messages reported by the distributed OMC system, and performs necessary caching and message source processing on the received messages, and the main flow is as follows:
(1) and the distributed OMC issues the network element equipment message.
(2) The centralized message subscriber receives the network element message and stores the network element message into a message buffer according to the Topic name classification.
(3) A always blocked message processing thread is awakened.
(4) The message processing thread traverses all the buffer queues and retrieves the head message from each queue.
(5) And the message processing thread calls centralized OMC management service to map the message source IP address into an OMC name, and the reverse analysis is completed.
(6) The centralized message subscriber forwards the message after being analyzed in a callback mode to a centralized OMT system
(7) A pair of mutually blocking-awakening PV operation threads is formed between (2) and (4), and the message processing cycle is always alive.
4. Online registration OMC timing
When a set of OMC system is newly deployed and then the OMC system information needs to be registered into a centralized OMC management system through a centralized registration tool, a monitoring service of a centralized JMS message forwarding device immediately monitors the new OMC information and establishes a JMS link between the monitoring service and the OMC in real time, and the main flow is as follows:
(1) the monitoring service of the JMS message forwarding device is in a periodic polling state
(2) And manually registering new OMC system information with the centralized OMC management system.
(3) Monitoring new OMC system information by JMS message forwarding device monitoring service
(4) The listening service asynchronously triggers the link management module of the JMS message forwarding device to create a new JMS link.
(5) Message senders and subscribers of the new JMS link are created.
The JMS message forwarding device comprises an analytic centralized message publishing and subscribing device, effectively solves the problem of one-to-many connection and centralized message receiving and sending between the centralized JMS message forwarding device and a JMS server, and further solves the problem of message aggregation and sending of multi-region network element equipment for centralized OMT.
The JMS message forwarding device comprises a polling type JMS service monitor which monitors online real-time deployment of a new OMC system in real time, so that a centralized connector is dynamically triggered to establish new JMS connection, and the problem that the centralized OMT cannot receive the message of the newly added OMC system in real time is effectively solved.
The scheme is considered to be adopted as long as the problem of message convergence or routing message forwarding between the single-point centralized JMS message forwarding device and the distributed multi-point JMS server is realized based on the two points.
The JMS message forwarding provided by this embodiment has at least the following technical effects:
the centralized JMS message forwarding device can subscribe multipoint JMS service messages in a centralized mode, and the problem of centralized OMT message convergence is solved.
The centralized JMS message forwarding device correctly routes the message to the destination JMS message server in a message source resolver mode, so that the perception of the centralized OMT on the distributed OMC service deployment is effectively shielded.
The centralized JMS message forwarding device effectively detects the deployment of newly added JMS services in real time in a service monitoring mode, thereby effectively solving the problem that the centralized OMT efficiently receives new OMC system messages in real time.
Fig. 8 is a schematic structural diagram of a JMS message forwarding apparatus according to yet another embodiment of the present invention.
Referring to fig. 8, on the basis of the foregoing embodiment, the JMS message forwarding apparatus provided in this embodiment includes a first receiving module 101, a first sending module 102, and a first creating module 103, where:
the first receiving module 101 is configured to receive a control message sent by an operation and maintenance terminal OMT, where the control message includes a name of an operation and maintenance center OMC to be controlled, and the JMS message forwarding device includes a JMS link that is pre-established between the JMS message forwarding device and multiple OMCs; the first sending module 102 is configured to send the control message to the OMC through a JMS link between the JMS message forwarding apparatus and the OMC, and the first creating module 103 is configured to periodically poll the centralized OMC management system whether there is information of a newly added OMC, and if so, create the JMS link between the JMS message forwarding apparatus and the newly added OMC according to the information of the newly added OMC.
The embodiment of the invention is described by taking the example that each partition area is provided with one OMC, and when the OMT needs to control a certain OMC, whether the OMC is in the same partition area or not does not need to be considered.
Optionally, the JMS message forwarding apparatus is used for middleware for the OMT to interact with the OMC, and is also called a JMS connector, and is disposed in the OMT.
Optionally, the JMS link is a connection mode of the OMT and the JMS service of the OMC, and may be pre-established before the OMC interacts with the OMT, and one JMS link connects one JMS message forwarding device and one OMC.
In the embodiment of the invention, the issuing function of the first sending module 102 interface of the JMS message forwarding device is expanded, so that the JMS message forwarding device can respectively establish JMS links with a plurality of OMCs.
It should be noted that, unlike the prior art, which can only be controlled by the OMT in the same sub-area as the OMC, the JMS message forwarding apparatus of the OMT only establishes a connection with one JMS service, that is, only one fixed OMC in the sub-area corresponding to the OMT, and only one JMS link exists, when the OMCs in different sub-areas need to be controlled, the OMTs in the sub-areas corresponding to the OMCs need to be switched, and then the control messages are sent. In this step, the OMT of a certain sub-area can control not only the OMC of the same sub-area, but also the OMCs of other sub-areas.
Optionally, after receiving the control message, the OMC controls a network element according to the control message.
Optionally, the information of the newly added OMC refers to information about a newly deployed OMC after a set of OMC is newly deployed.
Optionally, the centralized OMC management system is configured to manage system information of each OMC, such as deployment conditions of the OMCs, connection protocols, and the like.
Optionally, in the embodiment of the present invention, a centralized registration tool is deployed, and after a set of OMC system is newly deployed, the system information of the OMC needs to be registered in the centralized OMC management system through the centralized registration tool.
Optionally, the first creating module 103 has a monitoring service, polls the OMC service management system according to a monitoring service period, and creates a JMS link between the JMS message forwarding apparatus and the OMC in real time when new OMC information is monitored online.
The JMS message issuing apparatus provided in this embodiment may be used to execute the method in the foregoing method embodiment, and this implementation is not described again.
The JMS message issuing apparatus provided in this embodiment has at least the following technical effects:
by expanding the release function of the first sending module, the JMS message forwarding device comprises JMS links between the JMS message forwarding device and the OMCs, and can interact with the OMCs, so that the OMCs can be controlled without frequently switching to OMTs corresponding to the OMCs.
Fig. 9 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
Referring to fig. 9, an electronic device according to an embodiment of the present invention includes a first memory 111, a first processor 112, a bus 113, and a computer program stored in the first memory 111 and executable on the first processor 112, where the first processor 112 implements the following steps of the method when executing the computer program. The memory 111 and the processor 112 complete communication with each other through the bus 113.
The first processor 112 is used for calling the program instructions in the first memory 111 to implement the method of fig. 2 when executing the program.
In another embodiment, the processor, when executing the program, implements the method of:
the step of sending the control message to the OMC by the JMS message forwarding device through the acquired JMS link specifically includes:
the JMS message forwarding device caches the control message to a first sending buffer team according to the name of the OMC in a classified manner according to a first-in first-out principle;
and acquiring the control message from the first sending buffer queue, and sending the control message to the OMC through the JMS link.
The electronic device provided in this embodiment may be configured to execute the program corresponding to the method in the foregoing method embodiment, and this implementation is not described again.
The electronic device provided by the embodiment at least has the following technical effects:
when the processor executes the program, the releasing function of the JMS message forwarding device is expanded, so that the JMS message forwarding device comprises JMS links between the JMS links and a plurality of OMCs and can interact with the OMCs, the OMTs corresponding to the OMCs do not need to be frequently switched, and the control of the OMCs can be realized by only logging in one OMT.
A further embodiment of the present invention provides a first storage medium having a computer program stored thereon, which when executed by a first processor implements the steps of fig. 2.
In another embodiment, the program when executed by the first processor implements the method of:
the step of sending the control message to the OMC by the JMS message forwarding device through the acquired JMS link specifically includes:
the JMS message forwarding device caches the control message to a first sending buffer team according to the name of the OMC in a classified manner according to a first-in first-out principle;
and acquiring the control message from the first sending buffer queue, and sending the control message to the OMC through the JMS link.
In the storage medium provided in this embodiment, when the program is executed by the processor, the method in the foregoing method embodiment is implemented, and details of this implementation are not described again.
The storage medium provided by the embodiment has at least the following technical effects:
when being executed by the first processor, the program realizes the expansion of the release function of the JMS message forwarding device, so that the JMS message forwarding device comprises JMS links between the JMS message forwarding device and a plurality of OMCs and can interact with the OMCs, the OMTs corresponding to the OMCs do not need to be frequently switched, and the control of the OMCs can be realized only by logging in one OMT.
Yet another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, comprising:
a Java message service JMS message forwarding device receives a control message sent by an operation maintenance terminal OMT, wherein the control message comprises the name of an operation maintenance center OMC to be controlled, and the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
and the JMS message forwarding device sends the control message to the OMC through a JMS link between the JMS message forwarding device and the OMC, periodically polls a centralized OMC management system whether the information of the newly added OMC exists, and if so, creates the JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
Fig. 10 is a schematic structural diagram of a JMS message forwarding apparatus according to yet another embodiment of the present invention.
Referring to fig. 10, on the basis of the foregoing embodiment, the JMS message forwarding apparatus provided in this embodiment includes a second receiving module 121, a second sending module 122, and a second creating module 123, where:
the second receiving module 121 is configured to receive, by a JMS message forwarding apparatus, a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding apparatus and the OMC, where the JMS message forwarding apparatus includes pre-established JMS links between the JMS message forwarding apparatus and multiple OMCs; the second sending module 122 is configured to send the network element message to the OMT corresponding to the JMS message forwarding apparatus, and the second creating module 123 is configured to periodically poll the centralized OMC management system whether there is information of a newly added OMC, and if so, create a JMS link between the JMS message forwarding apparatus and the newly added OMC according to the information of the newly added OMC.
The embodiment of the invention takes the example that each sub-area is provided with one OMC as an example for explanation, and when the OMC needs to forward the network element message, whether the OMT is in the same sub-area or not does not need to be considered.
Optionally, the second receiving module 121 may interact with the OMC, and a JMS link between the JMS message forwarding apparatus and the OMC needs to be established in advance. When the JMS message forwarding device receives a network element message sent by a JMS link, the name of the OMC corresponding to the JMS link can be determined.
In the embodiment of the present invention, the issuing function of the interface of the second receiving module 121 of the JMS message forwarding apparatus is extended, so that the JMS message forwarding apparatus can establish JMS links with multiple OMCs respectively.
It should be noted that, unlike the prior art in which the OMC can only report the network element message to the OMT in the same sub-area as the OMC is located, the JMS message forwarding apparatus of the OMT only establishes a connection with one JMS service, that is, only one fixed OMC in the sub-area corresponding to the OMT, and only one JMS link exists, when it is desired to pay attention to multiple OMCs, it is necessary to switch to the OMT in the sub-area corresponding to the OMC, and then only the OMC in the sub-area can be paid attention to. The JMS message forwarding device of the embodiment of the invention can not only receive the OMC reporting network element messages of the same subarea, but also receive the OMC reporting network element messages of other subareas, so that a certain OMT can receive the network element messages of the OMCs of a plurality of subareas, and only one OMT which can pay attention to the network element messages of the plurality of subareas is logged in.
Optionally, the information of the newly added OMC refers to information about a newly deployed OMC after a set of OMC is newly deployed.
Optionally, the centralized OMC management system is configured to manage system information of each OMC, such as deployment conditions of the OMCs, connection protocols, and the like.
Optionally, in the embodiment of the present invention, a centralized registration tool is deployed, and after a set of OMC system is newly deployed, the system information of the OMC needs to be registered in the centralized OMC management system through the centralized registration tool.
Optionally, the second creating module 123 has a monitoring service, polls the OMC service management system according to a monitoring service period, and creates a JMS link between the JMS message forwarding apparatus and the OMC in real time when new OMC information is monitored online.
The JMS message issuing apparatus provided in this embodiment may be used to execute the method in the foregoing method embodiment, and this implementation is not described again.
The JMS message issuing apparatus provided in this embodiment has at least the following technical effects:
by expanding the subscription function of the second receiving module, the JMS message forwarding device includes a JMS link with multiple OMCs, and can interact with the multiple OMCs, so that a certain OMT can obtain network element information of the multiple OMCs, and a subsequent OMT can control the multiple OMCs.
Fig. 11 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
Referring to fig. 11, an electronic device according to an embodiment of the present invention includes a second memory 131, a second processor 132, a bus 133, and a computer program stored in the second memory 131 and executable on the second processor 132, where the second processor 132 implements the following steps of the method when executing the computer program. The second memory 131 and the second processor 132 are configured to communicate with each other through a bus 133.
The second processor 132 is used to call the program instructions in the second memory 131 to implement the method of fig. 3 when executing the program.
In another embodiment, the processor, when executing the program, implements the method of:
the network element message includes a name of a subject Topic, and correspondingly, the step of acquiring the name of the OMC by the JMS message forwarding device according to the received JMS link between the JMS message forwarding device and the OMC specifically includes:
the JMS message forwarding device caches the network element messages to a second sending buffer queue according to the name of the Topic in a classified manner according to a first-in first-out principle;
and obtaining the network element message from the second sending buffer queue, and sending the network element message to the OMT corresponding to the JMS message forwarding device.
The electronic device provided in this embodiment may be configured to execute the program corresponding to the method in the foregoing method embodiment, and this implementation is not described again.
The electronic device provided by the embodiment at least has the following technical effects:
when the second processor executes the program, the subscription function of the JMS message publishing device is expanded, so that the JMS message forwarding device comprises JMS links between the JMS message forwarding device and the OMCs and can interact with the OMCs, and a certain OMT can obtain network element information of the OMCs, so that the subsequent OMT can control the OMCs.
A further embodiment of the present invention provides a storage medium having a computer program stored thereon, which when executed by a second processor implements the steps of fig. 3.
In another embodiment, the program when executed by the second processor implements the method of:
the network element message includes a name of a subject Topic, and correspondingly, the step of acquiring the name of the OMC by the JMS message forwarding device according to the received JMS link between the JMS message forwarding device and the OMC specifically includes:
the JMS message forwarding device caches the network element messages to a second sending buffer queue according to the name of the Topic in a classified manner according to a first-in first-out principle;
and obtaining the network element message from the second sending buffer queue, and sending the network element message to the OMT corresponding to the JMS message forwarding device.
In the storage medium provided in this embodiment, when the program is executed by the second processor, the method in the foregoing method embodiment is implemented, and details of this implementation are not repeated.
The storage medium provided by the embodiment has at least the following technical effects:
when being executed by the second processor, the program realizes the extension of the subscription function of the JMS message publishing device, so that the JMS message forwarding device comprises JMS links between the JMS message forwarding device and the OMCs and can interact with the OMCs, and a certain OMT can obtain the network element information of the OMCs, so that the subsequent OMT can control the OMCs.
Yet another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-mentioned method embodiments, for example, comprising:
a JMS message forwarding device receives a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding device and the OMC, wherein the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
the JMS message forwarding device sends the network element message to an OMT corresponding to the JMS message forwarding device;
and periodically polling the centralized OMC management system to determine whether the information of the newly added OMC exists, and if so, establishing a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Those skilled in the art will appreciate that the steps of the embodiments may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A JMS message forwarding method is characterized by comprising the following steps:
a Java message service JMS message forwarding device receives a control message sent by an operation maintenance terminal OMT, wherein the control message comprises the name of an operation maintenance center OMC to be controlled, and the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
the JMS message forwarding device sends the control message to the OMC through a JMS link between the JMS message forwarding device and the OMC;
the JMS message forwarding device periodically polls the centralized OMC management system whether the information of the newly added OMC exists, and if so, a JMS link between the JMS message forwarding device and the newly added OMC is established according to the information of the newly added OMC.
2. The method of claim 1, wherein: the step of sending the control message to the OMC specifically includes:
the JMS message forwarding device caches the control message to a first sending buffer team according to the name of the OMC in a classified manner according to a first-in first-out principle;
and acquiring the control message from the first sending buffer queue, and sending the control message to the OMC through the JMS link.
3. A JMS message forwarding method is characterized by comprising the following steps:
a JMS message forwarding device receives a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding device and the OMC, wherein the JMS message forwarding device comprises pre-established JMS links between the JMS message forwarding device and a plurality of OMCs;
the JMS message forwarding device sends the network element message to an OMT corresponding to the JMS message forwarding device;
the JMS message forwarding device periodically polls the centralized OMC management system whether the information of the newly added OMC exists, and if so, a JMS link between the JMS message forwarding device and the newly added OMC is established according to the information of the newly added OMC.
4. The method of claim 3, wherein the network element message includes a name of a subject, and accordingly, the step of sending the network element message to the OMT corresponding to the JMS message forwarding device by the JMS message forwarding device specifically comprises:
the JMS message forwarding device caches the network element messages to a second sending buffer queue according to the name of the Topic in a classified manner according to a first-in first-out principle;
and obtaining the network element message from the second sending buffer queue, and sending the network element message to the OMT corresponding to the JMS message forwarding device.
5. A JMS message forwarding apparatus, the apparatus comprising:
the system comprises a first receiving module, a second receiving module and a control module, wherein the first receiving module is used for receiving a control message sent by an operation maintenance terminal OMT, the control message comprises the name of an operation maintenance center OMC to be controlled, and a JMS message forwarding device comprises a pre-established JMS link between the JMS message forwarding device and a plurality of OMCs;
a first sending module, configured to send the control message to the OMC through a JMS link between the JMS message forwarding apparatus and the OMC;
and the first creating module is used for periodically polling the centralized OMC management system to determine whether the information of the newly added OMC exists, and if so, creating a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
6. An electronic device comprising a first memory, a first processor, a bus and a computer program stored on the first memory and executable on the first processor, the first processor implementing the steps of claim 1 or 2 when executing the program.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that: which program when executed by the first processor implements the steps of claim 1 or 2.
8. A JMS message forwarding apparatus, the apparatus comprising:
a second receiving module, configured to receive a network element message sent by an OMC through a pre-established JMS link between the JMS message forwarding apparatus and the OMC, where the JMS message forwarding apparatus includes pre-established JMS links between the JMS message forwarding apparatus and multiple OMCs;
a second sending module, configured to send the network element message to an OMT corresponding to the JMS message forwarding apparatus;
and the second creating module is used for periodically polling the centralized OMC management system to determine whether the information of the newly added OMC exists, and if so, creating a JMS link between the JMS message forwarding device and the newly added OMC according to the information of the newly added OMC.
9. An electronic device comprising a second memory, a second processor, a second bus, and a computer program stored on the second memory and executable on the second processor, the second processor implementing the steps of claim 3 or 4 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: which program when executed by the second processor implements the steps of claim 3 or 4.
CN201710731251.0A 2017-08-23 2017-08-23 JMS message forwarding method, device, electronic equipment and storage medium Active CN109428745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710731251.0A CN109428745B (en) 2017-08-23 2017-08-23 JMS message forwarding method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710731251.0A CN109428745B (en) 2017-08-23 2017-08-23 JMS message forwarding method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109428745A CN109428745A (en) 2019-03-05
CN109428745B true CN109428745B (en) 2020-05-15

Family

ID=65499284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710731251.0A Active CN109428745B (en) 2017-08-23 2017-08-23 JMS message forwarding method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109428745B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579515B (en) * 2019-09-27 2023-03-24 Oppo广东移动通信有限公司 Thread message processing method and related product
CN114697985A (en) * 2020-12-28 2022-07-01 中国联合网络通信集团有限公司 Wireless operation and maintenance system registration method and device, electronic equipment and storage medium
CN115022749B (en) * 2022-06-02 2024-04-02 上海欣诺通信技术股份有限公司 Alarm receiving and processing method and system for access type optical transport network equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404404A (en) * 2011-09-07 2012-04-04 航天科工仿真技术有限责任公司 Distributed WEB application and remote equipment message communication method
CN102857406A (en) * 2012-07-23 2013-01-02 大唐移动通信设备有限公司 Message processing method and device for JBM (Java message service) system
CN104270374A (en) * 2014-10-11 2015-01-07 中国南方电网有限责任公司 Method and system of JMS cross forward isolating device
CN105049255A (en) * 2015-08-05 2015-11-11 大唐移动通信设备有限公司 Net element data synchronization method and device thereof
CN106656543A (en) * 2015-11-04 2017-05-10 中国南方电网有限责任公司 JMS channel link monitoring and alarming method and JMS channel link monitoring and alarming system in dispatching automation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404404A (en) * 2011-09-07 2012-04-04 航天科工仿真技术有限责任公司 Distributed WEB application and remote equipment message communication method
CN102857406A (en) * 2012-07-23 2013-01-02 大唐移动通信设备有限公司 Message processing method and device for JBM (Java message service) system
CN104270374A (en) * 2014-10-11 2015-01-07 中国南方电网有限责任公司 Method and system of JMS cross forward isolating device
CN105049255A (en) * 2015-08-05 2015-11-11 大唐移动通信设备有限公司 Net element data synchronization method and device thereof
CN106656543A (en) * 2015-11-04 2017-05-10 中国南方电网有限责任公司 JMS channel link monitoring and alarming method and JMS channel link monitoring and alarming system in dispatching automation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于消息的异步通信机制在网管中的设计和实现;王乐文;《中国优秀博硕士学位论文全文数据库 (硕士)信息科技辑(月刊 )》;20051115;I136-195 *

Also Published As

Publication number Publication date
CN109428745A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CA2991685C (en) System and method for secure real-time cloud services
US8200764B2 (en) System and method for achieving highly scalable real-time collaboration applications using HTTP
CN109274730B (en) Internet of things system, MQTT message transmission optimization method and device
CN101930656B (en) Method for processing alarm message of safe city video monitoring system
CN102014403B (en) Method and system for transmitting network topology information
CN109428745B (en) JMS message forwarding method, device, electronic equipment and storage medium
CN112565415B (en) Cross-region resource management system and method based on cloud edge cooperation
WO2022179140A1 (en) Data processing method and system
CN103927218A (en) Event dispatching method and system
CN104598300A (en) Distributive business process customization method and system
US11368410B2 (en) System and method for scaling analytics collection
CN105183299A (en) Human-computer interface service processing system and method
CN107147690A (en) A kind of electrical power system wide-area method for message transmission
CN107979498B (en) Mesh network cluster and large file transmission method based on cluster
CN108881456A (en) A kind of data interaction system, server-side and its data interactive method and system
CN111314416B (en) Data synchronization method, device, system, equipment and storage medium
CN112381347A (en) Production equipment state data real-time monitoring method and system based on API gateway
CN102752158B (en) Service traffics monitoring method and device
CN112256447A (en) Message notification method and system
CN105049255B (en) A kind of method and device thereof of network element data synchronization
CN111475315A (en) Server and subscription notification push control and execution method
CN103338160A (en) Buffer queue-based polling service optimization system and optimization method
CN118214650A (en) Metric and event infrastructure
CN105071950A (en) Large scale distributed intelligent monitoring system
Zinky et al. PASS-a service for efficient large scale dissemination of time varying data using CORBA

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