CN107306290B - Session sharing method and application server - Google Patents
Session sharing method and application server Download PDFInfo
- Publication number
- CN107306290B CN107306290B CN201610256170.5A CN201610256170A CN107306290B CN 107306290 B CN107306290 B CN 107306290B CN 201610256170 A CN201610256170 A CN 201610256170A CN 107306290 B CN107306290 B CN 107306290B
- Authority
- CN
- China
- Prior art keywords
- session
- application server
- change information
- module
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000008859 change Effects 0.000 claims abstract description 142
- 238000012544 monitoring process Methods 0.000 claims abstract description 18
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention discloses a session sharing method, which is applied to a first application server and comprises the following steps: monitoring a session request of a user to obtain session change information; and sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information. The embodiment of the invention also discloses an application server.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a session sharing method and an application server.
Background
With the arrival of the information age, one set of IT system cannot meet the requirements of enterprise development, and multiple sets of IT systems are often built and are realized by adopting domain names which are not in contact with each other or adopting a multi-level domain name mode. The systems generally adopt Single Sign On (SSO) to realize mutual login, so as to avoid the problem that the user repeatedly logs in among the systems.
However, since the above systems may adopt different technical architectures, such as J2EE, asp. In the using process of the user, the Session (Session) in one system can be used normally, but the Session is invalid when the other system is opened, so that great inconvenience is brought to the use of the user.
At present, in order to solve the above problems, a session independent synchronization server mode is mainly adopted for session sharing with the same technical architecture, and the synchronization server mainly adopts an independent file system or an independent database to store shared session information. In this case, the session module in each system needs to be rewritten to obtain the session from the common storage location, which increases the workload and cost; for Session sharing of different technical architectures, some systems adopt a J2EE architecture, some systems adopt an asp.net architecture, and some systems adopt a PHP architecture, these different architectures are different technologies for Session management, and to implement Session sharing synchronization, difficulty is high, synchronization mechanisms of sessions of different data structures need to be considered, an original system is greatly modified, and complexity of the system is increased.
Therefore, a reasonable session sharing method does not exist in the prior art.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a session sharing method and an application server, so as to implement session sharing, facilitate operation, simplify system structure, and reduce workload and cost of system modification.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a session sharing method, which is applied to a first application server, and the method includes: monitoring a session request of a user to obtain session change information; and sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information.
In the foregoing solution, after the sending the session change information to the second application server in the form of broadcast, the method further includes: and receiving a session update success message from the second application server, and stopping broadcasting the session change information.
In the foregoing solution, after the sending the session change information to the second application server in the form of broadcast, the method further includes: after receiving the session update success message from the second application server, judging whether the session data of all the application servers are completely updated; if so, stopping broadcasting the session change information; if not, the session change information is repeatedly broadcasted.
In a second aspect, an embodiment of the present invention provides a session sharing method, which is applied to a second application server, and the method includes: receiving session change information from a first application server; and updating the session data of the second application server according to the session change information.
In the foregoing solution, the updating the session data of the second application server according to the session change information includes: according to the technical architecture of the second application server, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the second application server by using the converted session data.
In the foregoing solution, after the updating of the session data of the second application server according to the session change information, the method further includes: and sending the session updating success information to the first application server in a broadcasting mode.
In a third aspect, an embodiment of the present invention provides an application server, where the application server includes: the system comprises a first monitoring module, a first sending module and a first message middleware module; the first monitoring module is used for monitoring a session request of a user, acquiring session change information and sending the session change information to the first sending module; the first sending module is configured to receive the session change information, call the first message middleware module interface, and send the session change information to the first message middleware module; the first message middleware module is used for receiving the session change information; and sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information.
In the foregoing solution, the first message middleware module is further configured to receive a session update success message from a second application server after the session change information is sent to the second application server in a broadcast manner, and stop broadcasting the session change information.
In the above scheme, the first message middleware module is further configured to receive a session update success message from a second application server after the session change information is sent to the second application server in a broadcast manner, and notify the first sending module; the first sending module is further configured to determine whether session data of all the application servers have been updated; if so, informing the first message middleware module to stop broadcasting the session change information; if not, the first message middleware module is informed to repeatedly broadcast the session change information.
In a fourth aspect, an embodiment of the present invention provides an application server, where the application server includes: a second receiving module and a second message middleware module; the second message middleware module is used for receiving session change information from the first application server; and the second receiving module is used for updating the session data of the application server to which the second receiving module belongs according to the session change information.
In the foregoing scheme, the second receiving module is specifically configured to: according to the technical architecture of the application server to which the application server belongs, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the application server to which the session data belongs according to the converted session data.
In the foregoing solution, the second message middleware module is further configured to send, in a broadcast form, the message of success of session update to the first application server after the second receiving module updates the session data of the application server to which the second receiving module belongs.
In the session sharing method provided by the embodiment of the invention, no matter the application server is isomorphic or heterogeneous, the session request of the user only needs to be monitored to obtain the session change information, and then the session change information is sent to the second application server in a broadcast mode, so that the second application server can update the session data of the second application server according to the session change information to achieve the purpose of session sharing. Furthermore, for the heterogeneous application server, after receiving the broadcasted session change message, the session change message can be converted into session data suitable for the application server according to the technical architecture of the application server, so that the purpose of session sharing synchronization is achieved, the operation is convenient, the system structure is simplified, and the workload and the cost of system modification are reduced.
Drawings
Fig. 1 is a schematic structural diagram of a session sharing system in an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a session sharing method performed by the session sharing system in the embodiment of the present invention;
fig. 3 is a schematic flowchart of a session sharing method performed by a first application server in the embodiment of the present invention;
fig. 4 is a flowchart illustrating a session sharing method performed by a second application server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an application server in an embodiment of the present invention;
fig. 6 is another schematic structural diagram of an application server in the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention discloses a session sharing system, fig. 1 is a schematic structural diagram of the session sharing system in the embodiment of the invention, and as shown in fig. 1, the system at least comprises: a first application server 1 and a second application server 2, where the first application server 1 can share a session with the second application server 2. Here, in the embodiment of the present invention, the system includes only 2 application servers as an example for description, but in a specific implementation process, the system may further include a plurality of application servers, and the present invention is not particularly limited.
In practical applications, the technical architectures of the first application server 1 and the second application server 2 may be the same or different, and the present invention is not limited in particular.
In particular, still referring to fig. 1, the first application server 1 comprises at least: a first monitoring module 11, a first sending module 12 and a first message middleware module 13; the second application server 2 includes at least: a second receiving module 21 and a second message middleware module 22.
With the embodiment of the invention, in the system, the first monitoring module is used for monitoring the session request of the user and acquiring the session change information; sending the session change information to a first sending module;
the session change information includes information such as user login, session use, and session invalidation.
A first sending module, configured to obtain the session change information; forwarding the session change information to a first message middleware module;
the first message middleware module is used for receiving the session change information sent by the first sending module; sending the session change information to a second receiving module in a broadcast mode;
the second message middleware module is used for receiving the session change information sent by the first message middleware module in a broadcast mode and sending the session change information to the second receiving module;
a second receiving module, configured to receive the session change information; according to the technical architecture of the second application server, the session change information is converted into a session data format required by the technical architecture; and updating the session data of the second application server by the converted session data.
It should be noted that the session sharing between the first application server and the second application server may be bidirectional, and then, the second application server may be respectively provided with a second monitoring module and a second sending module, which have the same functions as the first monitoring module and the first sending module in the first application server, and similarly, the first application server may be provided with a first receiving module, which has the same functions as the second receiving module in the second application server.
The following describes a session sharing method in the embodiment of the present invention with reference to the above system.
Fig. 2 is a schematic flow chart of a session sharing method performed by the session sharing system in the embodiment of the present invention, and as shown in fig. 2, the method includes:
s201: a first monitoring module monitors a session request of a user to obtain session change information;
specifically, session change information is intercepted by configuring a configuration module for intercepting a user session request in the first application server, where the session change information may include information such as user login, session use, and session invalidation.
S202: the first monitoring module sends the session change information to a first sending module;
s203: the first sending module forwards the session change information to a first message middleware module;
specifically, the first sending module calls a first message middleware module interface and forwards the session change information to the first message middleware module.
S204: the first message middleware module sends the session change information to the second message middleware module in a broadcast mode;
specifically, each application server has a message middleware module, and a data interaction path, namely a message middleware path, exists between the modules, so that after receiving the session change information, the first message middleware module sends the session change information to the second application server in a broadcast manner in the message middleware path, namely to the second message middleware module.
S205: the second message middleware module sends the session change information to a second receiving module;
specifically, after receiving the session change information broadcast by the first message middleware module through the message middleware path, the second message middleware module forwards the session change information to the second receiving module.
S206: and the second receiving module updates the session data of the second application server according to the session change information.
In the specific implementation process, the first application server and the second application server may be of the same technical architecture or of different technical architectures. Then, when the first application server and the second application server are isomorphic, the second receiving module updates the original session data according to the session change information, so that the session sharing between the isomorphic first application server and the second application server is realized.
However, when the first application server is heterogeneous to the second application server, since data formats of sessions required by different technical architectures are different, in order to implement session sharing between the heterogeneous first application server and the second application server, the method may further include: the second receiving module converts the session change information into a session data format required by the technical architecture according to the technical architecture of the second application server to obtain converted session data; and updating the session data of the second application server by the converted session data.
Further, after the second application server updates its session data, the method further includes: the second receiving module sends session update success information to the second message middleware module; the second message middleware module sends the session updating success information to the first message middleware module in a broadcasting mode; the first message middleware module stops broadcasting the session change message;
in addition, the first message middleware module may also forward the session update success information to the first sending module, so that the first sending module notifies the first message middleware module to stop broadcasting the session change message, and at this time, the first message middleware module stops broadcasting the session change message.
In another embodiment, if the session sharing system includes three or more application servers, after the first application server receives the session update success information broadcast by the second application server, the first sending module further needs to determine whether all the application servers return the session update success information, that is, determine whether the session data of all the application servers have been updated, if yes, the first sending module notifies the first message middleware module to stop broadcasting the session change information, otherwise, the first sending module notifies the first message middleware module to return S204 the repeatedly broadcasted session change information.
Thus, the process of session sharing between the first application server and the second application server is completed.
The following describes the above method on the side of each device in the system.
First, the station is explained on the first application server side.
Fig. 3 is a flowchart illustrating a method for performing session sharing by a first application server in the embodiment of the present invention, where reference is made to fig. 3, where the method includes:
s301: monitoring a session request of a user to obtain session change information;
here, the session change information may include information such as user login, session use, and session expiration.
S302: and sending the session change information to a second application server in a broadcast mode.
And the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information.
In the foregoing scheme, after S302, the method may further include: and receiving a session update success message from the second application server, and stopping broadcasting the session change information.
In the foregoing scheme, after S302, the method may further include: after receiving a session update success message from the second application server, judging whether session data of all the application servers are updated; if so, stopping broadcasting the session change information; if not, the session change information is repeatedly broadcasted.
Next, the station is explained on the second application server side.
Fig. 4 is a flowchart illustrating a session sharing method performed by a second application server in the embodiment of the present invention, where reference is made to fig. 4, where the method includes:
s401: receiving session change information from a first application server;
here, the session change information may include information such as user login, session use, and session expiration.
S402: and updating the session data of the second application server according to the session change information.
In the above scheme, S402 may include: according to the technical framework of the second application server, the session change information is converted into a session data format required by the technical framework, and the converted session data is obtained; and updating the session data of the second application server by the converted session data.
In the foregoing scheme, after S402, the method may include: and sending the session updating success information to the first application server in a broadcasting mode.
As can be seen from the above description, in the session sharing method provided in the embodiment of the present invention, no matter the application server is an isomorphic application server or a heterogeneous application server, it is only necessary to monitor the session request of the user to obtain the session change information, where the session change information may include user login information, session use information, or session invalidation information. And then, the session change information is sent to a second application server in a broadcast mode, so that the second application server can update the session data of the second application server according to the session change information to achieve the purpose of session sharing, a synchronization server does not need to be erected as in the prior art, the operation is convenient, the system structure is simplified, and the workload and the cost of system modification are reduced. Furthermore, for the heterogeneous application server, after receiving the broadcasted session change message, the session change message can be converted into session data suitable for the application server according to the technical architecture of the application server, so that the purpose of session sharing synchronization is achieved, the operation is convenient, the system structure is simplified, and the workload and the cost of system modification are reduced.
Based on the same inventive concept, embodiments of the present invention provide an application server, which is consistent with the first application server described in one or more embodiments above.
Fig. 5 is a schematic structural diagram of an application server in an embodiment of the present invention, and referring to fig. 5, the application server includes: a first listening module 51, a first sending module 52 and a first message middleware module 53; the first monitoring module 51 is configured to monitor a session request of a user, obtain session change information, and send the session change information to the first sending module 52; the first sending module 52 is configured to receive the session change information, call a first message middleware module interface, and send the session change information to the first message middleware module 53; a first message middleware module 53, configured to receive session change information; and sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information.
In the foregoing solution, the first message middleware module 53 is further configured to receive a session update success message from the second application server after the session change information is sent to the second application server in a broadcast manner, and stop broadcasting the session change information.
In the above solution, the first message middleware module 53 is further configured to receive a session update success message from the second application server after the session change information is sent to the second application server in a broadcast manner, and notify the first sending module 52; the first sending module 52 is further configured to determine whether session data of all the application servers have been updated; if yes, the first message middleware module 53 is notified to stop broadcasting the session change information; if not, the first message middleware module 53 is notified to repeatedly broadcast the session change information.
Here, it should be noted that: the above description of the application server embodiment is similar to the above description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiment of the application server of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is omitted here.
Based on the same inventive concept, embodiments of the present invention provide an application server, consistent with the second application server in one or more of the embodiments described above.
Fig. 6 is another schematic structural diagram of an application server in an embodiment of the present invention, and referring to fig. 6, the application server includes: a second message middleware module 61 and a second receiving module 62; wherein,
a second message middleware module 61, configured to receive session change information from the first application server;
and the second receiving module 62 is configured to update the session data of the application server to which the second receiving module belongs according to the session change information.
In the foregoing solution, the second receiving module 62 is specifically configured to: according to the technical architecture of the application server to which the application server belongs, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the application server to which the self belongs by using the converted session data.
In the above solution, the second message middleware module 61 is further configured to send the session update success information to the first application server in a broadcast form after the second receiving module 62 updates the session data of the application server to which the second receiving module belongs.
Here, it should be noted that: the above description of the application server embodiment is similar to the above description of the method, and has the same beneficial effects as the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiment of the application server of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is omitted here.
Here, it should be noted that:
it should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A session sharing method is applied to a first application server, and is characterized by comprising the following steps:
monitoring a session request of a user to obtain session change information;
sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information; the session change information includes at least one of: user login information, session using information or session invalidation information;
the second application server updates the session data of itself according to the session change information, and the update includes: according to the technical architecture of the second application server, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the second application server by using the converted session data.
2. The method of claim 1, wherein after the sending the session change information to the second application server in the form of a broadcast, the method further comprises:
and receiving a session update success message from the second application server, and stopping broadcasting the session change information.
3. The method of claim 1, wherein after the sending the session change information to the second application server in the form of a broadcast, the method further comprises:
after receiving the session update success message from the second application server, judging whether the session data of all the application servers are completely updated;
if so, stopping broadcasting the session change information;
if not, the session change information is repeatedly broadcasted.
4. A session sharing method is applied to a second application server, and is characterized in that the method comprises the following steps:
receiving session change information from a first application server;
updating the session data of the second application server according to the session change information; wherein the session change information includes at least one of: user login information, session using information or session invalidation information;
wherein, according to the session change information, updating the session data of the second application server includes:
according to the technical architecture of the second application server, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained;
and updating the session data of the second application server by using the converted session data.
5. The method of claim 4, wherein after the updating of the session data of the second application server according to the session change information, the method further comprises:
and sending the session updating success information to the first application server in a broadcasting mode.
6. An application server, characterized in that the application server comprises: the system comprises a first monitoring module, a first sending module and a first message middleware module; wherein,
the first monitoring module is used for monitoring a session request of a user, acquiring session change information and sending the session change information to the first sending module;
the first sending module is configured to receive the session change information, call the first message middleware module interface, and send the session change information to the first message middleware module;
the first message middleware module is used for receiving the session change information; sending the session change information to a second application server in a broadcast mode, wherein the session change information is used for indicating the second application server to update the session data of the second application server according to the session change information; the session change information includes at least one of: user login information, session using information or session invalidation information; the second application server updates the session data of itself according to the session change information, and the update includes: according to the technical architecture of the second application server, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the second application server by using the converted session data.
7. The application server of claim 6, wherein the first message middleware module is further configured to receive a session update success message from a second application server after the session change information is sent to the second application server in a broadcast manner, and stop broadcasting the session change information.
8. The application server of claim 6, wherein the first message middleware module is further configured to receive a session update success message from a second application server after the session change information is sent to the second application server in a broadcast manner, and notify the first sending module;
the first sending module is further configured to determine whether session data of all the application servers have been updated; if so, informing the first message middleware module to stop broadcasting the session change information; if not, the first message middleware module is informed to repeatedly broadcast the session change information.
9. An application server, characterized in that the application server comprises: a second receiving module and a second message middleware module; wherein,
the second message middleware module is used for receiving session change information from the first application server;
the second receiving module is used for updating the session data of the application server to which the second receiving module belongs according to the session change information; the session change information includes at least one of: user login information, session using information or session invalidation information;
the second receiving module is specifically configured to: according to the technical architecture of the application server to which the application server belongs, the session change information is converted into a session data format required by the technical architecture, and the converted session data is obtained; and updating the session data of the application server to which the session data belongs according to the converted session data.
10. The application server of claim 9, wherein the second message middleware module is further configured to send session update success information to the first application server in a broadcast form after the second receiving module updates the session data of the application server to which the second receiving module belongs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610256170.5A CN107306290B (en) | 2016-04-22 | 2016-04-22 | Session sharing method and application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610256170.5A CN107306290B (en) | 2016-04-22 | 2016-04-22 | Session sharing method and application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107306290A CN107306290A (en) | 2017-10-31 |
CN107306290B true CN107306290B (en) | 2021-06-18 |
Family
ID=60152577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610256170.5A Active CN107306290B (en) | 2016-04-22 | 2016-04-22 | Session sharing method and application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107306290B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111159585B (en) * | 2018-11-07 | 2023-09-22 | ***通信集团重庆有限公司 | Method, device, equipment and medium for automatically submitting data |
CN110413349B (en) * | 2019-07-31 | 2022-10-14 | 中国工商银行股份有限公司 | Service calling method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426026A (en) * | 2008-09-17 | 2009-05-06 | 北京六维世纪网络技术有限公司 | Method and system for data synchronization between multiple servers |
CN104580097A (en) * | 2013-10-22 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Data processing method, device and system |
CN104735098A (en) * | 2013-12-18 | 2015-06-24 | 青岛海尔空调器有限总公司 | Session information control method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101771727B (en) * | 2010-02-25 | 2014-12-17 | 中兴通讯股份有限公司 | Methods and devices for synchronously upgrading equipment management object information |
TW201225701A (en) * | 2010-11-18 | 2012-06-16 | Interdigital Patent Holdings | Method and apparatus for inter-user equipment transfer |
CN103701925B (en) * | 2013-12-31 | 2017-04-05 | 北京网康科技有限公司 | Source synchronous management-control method |
-
2016
- 2016-04-22 CN CN201610256170.5A patent/CN107306290B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101426026A (en) * | 2008-09-17 | 2009-05-06 | 北京六维世纪网络技术有限公司 | Method and system for data synchronization between multiple servers |
CN104580097A (en) * | 2013-10-22 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Data processing method, device and system |
CN104735098A (en) * | 2013-12-18 | 2015-06-24 | 青岛海尔空调器有限总公司 | Session information control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107306290A (en) | 2017-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6855573B2 (en) | How to update the location area of the user terminal, access network entity, user terminal and core network entity | |
US10291731B2 (en) | Method, client, and server for message pushing of webpage application | |
US9686230B2 (en) | Management of application server-related user data | |
US9838375B2 (en) | RESTlike API that supports a resilient and scalable distributed application | |
CN104301373B (en) | Via the synchronous sending out notice of file-sharing service | |
CN111090699A (en) | Service data synchronization method and device, storage medium and electronic device | |
CN102148817B (en) | Network equipment configuration method, client, server and network system | |
CN111078504A (en) | Distributed call chain tracking method and device, computer equipment and storage medium | |
CN101622587B (en) | Centralized service for awakening a computing device | |
JP2020537449A (en) | Service registration in communication network | |
KR20200042006A (en) | Internet of Things Resource Subscription Methods, Devices, and Systems | |
KR20110076954A (en) | Optimized polling in low resource devices | |
CN103718578A (en) | Managing notification messages | |
CN103348663A (en) | Message push notification client improvements for multi-user devices | |
WO2013150466A3 (en) | Systems and methods for event notification framework in a machine-to-machine (m2m) context | |
CN105630913A (en) | Redis pipeline communication-based message passing method and system | |
CN113162848B (en) | Method, device, gateway and medium for realizing block chain gateway | |
CN101448004A (en) | Method, server and system based on instant messaging for releasing user state | |
CN102591934A (en) | Zookeeper-based method for realizing automatic expansion and switching of multiple Solr Shards | |
US9026839B2 (en) | Client based high availability method for message delivery | |
CN109885347B (en) | Method, device, terminal, system and storage medium for acquiring configuration data | |
CN107306290B (en) | Session sharing method and application server | |
CN101771724A (en) | Heterogeneous distributed information integration method, device and system | |
CN109787789B (en) | Compatibility management method, device and equipment for software upgrading and storage medium | |
CN113326100A (en) | Cluster management method, device and equipment and computer storage medium |
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 |