CN104375889B - A kind of Web layers switching system and method - Google Patents
A kind of Web layers switching system and method Download PDFInfo
- Publication number
- CN104375889B CN104375889B CN201410596743.XA CN201410596743A CN104375889B CN 104375889 B CN104375889 B CN 104375889B CN 201410596743 A CN201410596743 A CN 201410596743A CN 104375889 B CN104375889 B CN 104375889B
- Authority
- CN
- China
- Prior art keywords
- normal
- middleware
- configuration file
- file
- module
- 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
Landscapes
- Computer And Data Communications (AREA)
- Hardware Redundancy (AREA)
Abstract
The present invention relates to a kind of Web layers switching system and method, is included in Web application modules configuration normal system routing configuration file and emergency system routing configuration file and preserves;Normal middleware and emergent middleware are established in Web server;Normal system routing configuration file and emergency system configuration file are respectively directed to normal middleware and emergent middleware;Web application modules load normal system routing rule into internal memory, and then call normal Middleware implementation business function;When normal middleware occurs abnormal, the routing rule in internal memory is replaced with into emergency system routing configuration file, and then Web application modules call emergent middleware.The present invention is realized when accident occurs, and in specific time requirement, can completely or partially recover key business function, in particular for client perception is closely related, the amount of accepting is larger business realizing priority support.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of Web layers switching system and method.
Background technology
Ensured and required according to business continuance in NGCRM specifications, when being broken down in the production main frame short time, it is necessary to adopt
Emergency measure is taken, to ensure business continuance.Typically take in the prior art and enable disaster tolerance system, but disaster tolerance switching is because of system rule
Mould, technical difficulty etc. may need longer time.
The content of the invention
The technical problems to be solved by the invention be in view of the shortcomings of the prior art, provide a kind of web layer switching system and
Method.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of Web layers switching system, including Web applications system
System and Web server, the Web application systems include routing file configuration module, routing file memory module, Web server
Status monitoring module, emergent handover module, routing file load-on module and memory modules;It is deployed with just in the Web server
Normal middleware and emergent middleware;
The file configuration module, it is used to configure normal system routing configuration file and emergency system routing configuration text
Part, and it is sent to routing file memory module;
The routing file memory module, it is used to store normal system routing configuration file and emergency system routing configuration
File;
The Web server monitors module, and it is used to monitor the state that Web server provides service for Web applications in real time;
When finding that service is abnormal warning information is sent to emergent handover module;
The emergent handover module, it is used to monitor warning information that module sends to routing file according to Web server
Load-on module sends route handoff instruction;
The routing file load-on module, it is used for the route handoff instruction sent according to emergent handover module, will be emergent
System routing configuration file is loaded into memory modules and replaces normal system routing configuration file;
The memory modules, its normal system routing configuration file for being used to parse loading or emergency system routing configuration text
Part, and then the normal middleware of called Web service device or emergent middleware.
The beneficial effects of the invention are as follows:Present invention realization, can in specific time requirement when accident occurs
It is all or part of to recover key business function, in particular for client perception is closely related, the amount of accepting is larger business realizing
Priority support;The construction of emergency system can improve emergency guarantee system realization mechanism, realize the quick, business continuity of lightweight
Property guarantee, it is ensured that the uninterrupted of client's key business accepts during the system failure.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, the routing file load-on module, it by normal system routing configuration file or is met an urgent need using JSP
System routing configuration file is loaded onto in memory modules.
Further, the JSP realizes the switching of routing configuration information by performing SHELL scripts.
Another technical scheme that the present invention solves above-mentioned technical problem is as follows:A kind of Web layers switching method, including following step
Suddenly:
Step 1, normal system routing configuration file and emergency system routing configuration file are configured in Web application modules and protected
Deposit;
Step 2, normal middleware and emergent middleware are established in Web server;
Step 3, normal system routing configuration file in step 1 and emergency system configuration file are respectively directed in step 2
Normal middleware and emergent middleware;
Step 4, Web application modules load normal system routing rule into internal memory, and then call normal Middleware implementation
Business function;
Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with into emergency system routing configuration
File, and then Web application modules call emergent middleware.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, JSP is utilized in step 4 by normal system routing configuration file or emergency system routing configuration file
It is loaded onto in memory modules.
Further, the JSP realizes the switching of routing configuration information by performing SHELL scripts.
Brief description of the drawings
Fig. 1 is a kind of Web layers switching system block diagram of the present invention;
Fig. 2 is a kind of Web layers switching method flow chart of the present invention.
In accompanying drawing, the list of parts representated by each label is as follows:
1st, routing file configuration module, 2, routing file memory module, 3, Web server status monitoring module, 4, emergent
Handover module, 5, routing file load-on module, 6, memory modules.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
As shown in figure 1, a kind of Web layers switching system, including Web application systems and Web server, the Web applications system
System includes routing file configuration module 1, routing file memory module 2, Web server status monitoring module 3, emergent handover module
4th, routing file load-on module 5 and memory modules 6;Normal middleware and emergent middleware are deployed with the Web server;Institute
File configuration module 1 is stated, it is used to configure normal system routing configuration file and emergency system routing configuration file, and is sent to
Routing file memory module;The routing file memory module 2, it is used to store normal system routing configuration file and emergent system
System routing configuration file;The Web server monitors module 3, and it, which is used to monitoring Web server in real time to apply for Web, provides clothes
The state of business;When finding that service is abnormal warning information is sent to emergent handover module;The emergent handover module 4, it is used for
The warning information that module transmission is monitored according to Web server sends route handoff instruction to routing file load-on module;The road
By file load module 5, it is used for the route handoff instruction sent according to emergent handover module, by emergency system routing configuration text
Part is loaded into memory modules and replaces normal system routing configuration file;The memory modules 6, it is used for the normal system for parsing loading
System routing configuration file or emergency system routing configuration file, and then the normal middleware of called Web service device or emergent middle
Part.
The routing file load-on module 5, it utilizes JSP by normal system routing configuration file or emergency system road
It is loaded onto by configuration file in memory modules.The JSP realizes cutting for routing configuration information by performing SHELL scripts
Change.
As shown in Fig. 2 a kind of Web layers switching method, comprises the following steps:
Step 1, normal system routing configuration file and emergency system routing configuration file are configured in Web application modules and protected
Deposit;
Step 2, normal middleware and emergent middleware are established in Web server;
Step 3, normal system routing configuration file in step 1 and emergency system configuration file are respectively directed in step 2
Normal middleware and emergent middleware;
Step 4, Web application modules load normal system routing rule into internal memory, and then call normal Middleware implementation
Business function;
Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with into emergency system routing configuration
File, and then Web application modules call emergent middleware.
Normal system routing configuration file or emergency system routing configuration file are loaded onto using JSP in step 4
In memory modules.The JSP realizes the switching of routing configuration information by performing SHELL scripts.
The construction of emergency system can improve emergency guarantee system realization mechanism, realize the quick, business continuity of lightweight
Property guarantee, it is ensured that the uninterrupted of client's key business accepts during the system failure.
For WEB layers, the purpose of emergent switching is that the node configuration of WTC in WEB server is switched into emergency system
WTC nodes configuration, with realize normal system paralyse in the case of the request of all users is forwarded among emergency system
Part main frame.
The emergent switching of WEB floor in the application of WEB application system mainly by establishing the normally road with emergent two systems
By configuration file, be respectively directed to the configuration of WEB server console two sets WTC configurations (routing configuration file of application system with
WTC configurations in WEB server are one-to-one), realize:When needing to switch to emergency system from normal system, pass through
Perform SHELL scripts and WEB application system configuration is switched into emergency system routing configuration file, because man-to-man configuration is closed
System, therefore the configuration that WTC in WEB server is configured and switched to corresponding to emergency system is also achieved, to realize emergent switching.
1. system application .properties configuration files configure normal and emergency system routing iinformation, such as:
2nd, two sets of configuration filenames are established;
3rd, WEB server configures:Normal and two sets of middleware node configuration informations of emergency system are called, often cover configuration information
In include a WEB middleware such as W1 and TUXEDO middlewares such as T1, configuration information example:
4th, SHELL scripts, content switch the JSP of configuration information in internal memory to call;
5th, configuration information is when system starts, and is loaded into by the class of reading configuration file in internal memory, is set to static variable,
For calling;Because configuration information only only loads once in system reboot, so wanting not restart system and change with confidence
Breath is, it is necessary to reload the configuration information of loaded, therefore develop a JSP and use in configuration information covering memory
To realize this function of configuration information heavy duty;
6th, JSP be responsible for by by ClassLoader getResourceAsStream methods loading/heavy duty to being
System internal memory;
Simple to operate, quick response of the invention, it is the switching that system WEB layer can be achieved to perform a SHELL script, simple
It is clean, efficient;Scalability is strong, functionally possesses enough extended capabilities, meets the needs of business development from now on, supports to new
The quick response of access system, it can adapt to the needs of future capacity increase and business change;With practicality and maturity, make
With the technology that industry is ripe, reliable and practical, to meet the availability of system, dependable with function.
The present invention is realized when accident occurs, and in specific time requirement, can completely or partially recover crucial
Business function, in particular for client perception is closely related, the amount of accepting is larger business realizing priority support.Simultaneously with comprehensive
Lifting service quality is primary goal, to improve the continuous service ability of key business as standard, reduces service disconnection duration, lifting
Service quality and service level, and operations risks are reduced, traffic lost is reduced to acceptable degree, to strengthen competition among enterprises
Power.The construction of emergency system can improve emergency guarantee system realization mechanism, realize that quick, lightweight business continuance is protected
Barrier, it is ensured that the uninterrupted of client's key business accepts during the system failure.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.
Claims (6)
- A kind of 1. Web layers switching system, it is characterised in that including Web application systems and Web server, the Web application systems Including routing file configuration module, routing file memory module, Web server status monitoring module, emergent handover module, route File load module and memory modules;Normal middleware and emergent middleware are deployed with the Web server;The file configuration module, it is used to configure normal system routing configuration file and emergency system routing configuration file, and It is sent to routing file memory module;The routing file memory module, it is used to store normal system routing configuration file and emergency system routing configuration text Part;The Web server monitors module, and it is used to monitor the state that Web server provides service for Web applications in real time;Work as hair When now servicing abnormal warning information is sent to emergent handover module;The emergent handover module, it is used to monitor the warning information of module transmission according to Web server and loaded to routing file Module sends route handoff instruction;The routing file load-on module, it is used for the route handoff instruction sent according to emergent handover module, by emergency system Routing configuration file is loaded into memory modules and replaces normal system routing configuration file;The memory modules, it is used for the normal system routing configuration file or emergency system routing configuration file that parse loading, And then normal middleware or the emergent middleware of called Web service device.
- 2. a kind of Web layers switching system according to claim 1, it is characterised in that the routing file load-on module, its profit Normal system routing configuration file or emergency system routing configuration file are loaded onto in memory modules with JSP.
- 3. a kind of Web layers switching system according to claim 2, it is characterised in that the JSP is by performing SHELL Script realizes the switching of routing configuration information.
- 4. a kind of Web layers switching method, it is characterised in that comprise the following steps:Step 1, normal system routing configuration file and emergency system routing configuration file are configured in Web application modules and preserved;Step 2, normal middleware and emergent middleware are established in Web server;Step 3, normal system routing configuration file in step 1 and emergency system configuration file are respectively directed in step 2 just Normal middleware and emergent middleware;Step 4, Web application modules load normal system routing rule into internal memory, and then call normal Middleware implementation business Function;Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with into emergency system routing configuration text Part, and then Web application modules call emergent middleware.
- 5. a kind of Web layers switching method according to claim 4, it is characterised in that will be normal using JSP in step 4 System routing configuration file or emergency system routing configuration file are loaded onto in memory modules.
- 6. a kind of Web layers switching method according to claim 5, it is characterised in that the JSP is by performing SHELL Script realizes the switching of routing configuration information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410596743.XA CN104375889B (en) | 2014-10-29 | 2014-10-29 | A kind of Web layers switching system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410596743.XA CN104375889B (en) | 2014-10-29 | 2014-10-29 | A kind of Web layers switching system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104375889A CN104375889A (en) | 2015-02-25 |
CN104375889B true CN104375889B (en) | 2018-04-03 |
Family
ID=52554827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410596743.XA Active CN104375889B (en) | 2014-10-29 | 2014-10-29 | A kind of Web layers switching system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104375889B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107463418B (en) * | 2017-09-12 | 2020-11-13 | 北京宝兰德软件股份有限公司 | Configuration file generation method and device for server middleware |
CN109921935A (en) * | 2019-03-12 | 2019-06-21 | 北京百度网讯科技有限公司 | Method and apparatus for sending information |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571850A (en) * | 2010-12-24 | 2012-07-11 | ***通信集团山东有限公司 | Transaction committing system, method and equipment |
CN102833580A (en) * | 2012-09-19 | 2012-12-19 | 南京斯坦德通信股份有限公司 | High-definition video application system and method based on infiniband |
-
2014
- 2014-10-29 CN CN201410596743.XA patent/CN104375889B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571850A (en) * | 2010-12-24 | 2012-07-11 | ***通信集团山东有限公司 | Transaction committing system, method and equipment |
CN102833580A (en) * | 2012-09-19 | 2012-12-19 | 南京斯坦德通信股份有限公司 | High-definition video application system and method based on infiniband |
Also Published As
Publication number | Publication date |
---|---|
CN104375889A (en) | 2015-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240235925A1 (en) | Intelligent network | |
US10122604B2 (en) | Emergency network services by an access network computing node | |
CN107465721B (en) | Global load balancing method and system based on double-active architecture and scheduling server | |
US8989000B2 (en) | Cloud-based telecommunications infrastructure | |
PH12015500177B1 (en) | Computer information system and dynamic disaster recovery method therefor | |
CN105450757A (en) | Service management method and system | |
CN106533736B (en) | Network equipment restarting method and device | |
US20220078091A1 (en) | Systems and Methods to Deploy Cloud-Native Microservices for Communication Services on Scale | |
CN105429799B (en) | Server backup method and device | |
CN110266815B (en) | Micro service network system based on block chain | |
CN104618221A (en) | Decentralized message service system | |
CN111683139A (en) | Method and apparatus for balancing load | |
CN104375889B (en) | A kind of Web layers switching system and method | |
CN102891833A (en) | Network disaster tolerance method and network disaster tolerance system | |
US7519855B2 (en) | Method and system for distributing data processing units in a communication network | |
KR101479919B1 (en) | Methods for improved server redundancy in dynamic networks | |
CN116886497A (en) | Service grid business centralized proxy switching method and processing system based on DPU | |
CN103931138A (en) | Scalable distributed multicluster device management server architecture and method of operation thereof | |
US20090316572A1 (en) | Method and system for managing port statuses of a network device and relay device | |
CN106534758B (en) | Conference backup method and device | |
Zhong et al. | Dynamic lines of collaboration in CPS disruption response | |
US10299311B2 (en) | System and method for ensuring continuous communication between a user device and an emergency dispatcher unit | |
CN105007143A (en) | Call preservation and recovery method and system | |
CN102946321B (en) | A kind of fault handling method based on IRF network and equipment | |
CN108011816B (en) | EPC firewall disaster-tolerant networking system and data transmission method based on same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |