CN104375889A - Web layer switching system and method - Google Patents

Web layer switching system and method Download PDF

Info

Publication number
CN104375889A
CN104375889A CN201410596743.XA CN201410596743A CN104375889A CN 104375889 A CN104375889 A CN 104375889A CN 201410596743 A CN201410596743 A CN 201410596743A CN 104375889 A CN104375889 A CN 104375889A
Authority
CN
China
Prior art keywords
configuration file
normal
module
middleware
file
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.)
Granted
Application number
CN201410596743.XA
Other languages
Chinese (zh)
Other versions
CN104375889B (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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201410596743.XA priority Critical patent/CN104375889B/en
Publication of CN104375889A publication Critical patent/CN104375889A/en
Application granted granted Critical
Publication of CN104375889B publication Critical patent/CN104375889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention relates to a Web layer switching system and method. The method includes the steps that a normal system routing configuration file and an emergency system routing configuration file are configured and saved in a Web application module; a piece of normal middleware and a piece of emergency middleware are established in a Web server; the normal system routing configuration file and the emergency system routing configuration file are pointed to the normal middleware and the emergency middleware respectively; a normal system routing rule is loaded into an internal storage by the Web application module so that the normal middleware can be called to achieve service functions; when the normal middleware is abnormal, the routing rule in the internal storage is replaced with the emergency system routing configuration file so that the emergency middleware can be called by the Web application module. Due to the Web layer switching system and method, when in emergency, the key service functions can be completely or partially restored in specific required time, and particularly, services which are closely related to customer perception and large in acceptance number can be guaranteed emphatically.

Description

A kind of Web layer switched system and method
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of Web layer switched system and method.
Background technology
Ensureing requirement according to business continuance in NGCRM specification, when breaking down in the production main frame short time, needing to take emergency measures, to ensure business continuance.Generally take in prior art to enable disaster tolerance system, but disaster tolerance switches because system scale, technical difficulty etc. may need the longer time.
Summary of the invention
Technical matters to be solved by this invention is for the deficiencies in the prior art, provides a kind of web layer switched system and method.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of Web layer switched system, comprise Web application system and Web server, described Web application system comprises routing file configuration module, routing file memory module, Web server status monitoring module, emergent handover module, routing file load-on module and memory modules; Normal middleware and emergent middleware is deployed with in described Web server;
Described file configuration module, it for configuring normal system routing configuration file and emergency system routing configuration file, and sends to routing file memory module;
Described routing file memory module, it is for storing normal system routing configuration file and emergency system routing configuration file;
Module monitored by described Web server, its for real-time listening Web server for Web application provides the state of service; Early warning information is sent to emergent handover module when finding that service is abnormal;
Described emergent handover module, it sends route handoff instruction for the early warning information monitoring module transmission according to Web server to routing file load-on module;
Described routing file load-on module, emergency system routing configuration file, for the route handoff instruction according to emergent handover module transmission, is loaded into memory modules and replaces normal system routing configuration file by it;
Described memory modules, it is for resolving normal system routing configuration file or the emergency system routing configuration file of loading, and then the normal middleware of called Web service device or emergent middleware.
The invention has the beneficial effects as follows: the present invention realizes when there is accident, in specific time requirement, can all or part of recovery key business function, especially for closely related with client perception, that the amount of accepting is larger business realizing priority support; The construction of emergency system can improve emergency guarantee system realization mechanism, and realize business continuance guarantee that is quick, lightweight, during guaranteeing the system failure, client's key business uninterruptedly accepts.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described routing file load-on module, it utilizes JSP normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules.
Further, described JSP realizes the switching of routing configuration information by performing SHELL script.
Another technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of Web layer changing method, comprises the steps:
Step 1, at Web application module configuration normal system routing configuration file and emergency system routing configuration file preserving;
Step 2, sets up normal middleware and emergent middleware at Web server;
Step 3, points to the normal middleware in step 2 and emergent middleware by normal system routing configuration file in step 1 and emergency system configuration file branch;
Step 4, Web application module loads normal system routing rule in internal memory, and then calls normal Middleware implementation business function;
Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with emergency system routing configuration file, and then Web application module calls emergent middleware.
On the basis of technique scheme, the present invention can also do following improvement.
Further, JSP is utilized normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules in step 4.
Further, described JSP realizes the switching of routing configuration information by performing SHELL script.
Accompanying drawing explanation
Fig. 1 is a kind of Web layer switched system block diagram of the present invention;
Fig. 2 is a kind of Web layer changing method process flow diagram of the present invention.
In accompanying drawing, the list of parts representated by each label is as follows:
1, 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
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, a kind of Web layer switched system, comprise Web application system and Web server, described Web application system comprises routing file configuration module 1, routing file memory module 2, Web server status monitoring module 3, emergent handover module 4, routing file load-on module 5 and memory modules 6; Normal middleware and emergent middleware is deployed with in described Web server; Described file configuration module 1, it for configuring normal system routing configuration file and emergency system routing configuration file, and sends to routing file memory module; Described routing file memory module 2, it is for storing normal system routing configuration file and emergency system routing configuration file; Module 3 monitored by described Web server, its for real-time listening Web server for Web application provides the state of service; Early warning information is sent to emergent handover module when finding that service is abnormal; Described emergent handover module 4, it sends route handoff instruction for the early warning information monitoring module transmission according to Web server to routing file load-on module; Described routing file load-on module 5, emergency system routing configuration file, for the route handoff instruction according to emergent handover module transmission, is loaded into memory modules and replaces normal system routing configuration file by it; Described memory modules 6, it is for resolving normal system routing configuration file or the emergency system routing configuration file of loading, and then the normal middleware of called Web service device or emergent middleware.
Described routing file load-on module 5, it utilizes JSP normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules.Described JSP realizes the switching of routing configuration information by performing SHELL script.
As shown in Figure 2, a kind of Web layer changing method, comprises the steps:
Step 1, at Web application module configuration normal system routing configuration file and emergency system routing configuration file preserving;
Step 2, sets up normal middleware and emergent middleware at Web server;
Step 3, points to the normal middleware in step 2 and emergent middleware by normal system routing configuration file in step 1 and emergency system configuration file branch;
Step 4, Web application module loads normal system routing rule in internal memory, and then calls normal Middleware implementation business function;
Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with emergency system routing configuration file, and then Web application module calls emergent middleware.
JSP is utilized normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules in step 4.Described JSP realizes the switching of routing configuration information by performing SHELL script.
The construction of emergency system can improve emergency guarantee system realization mechanism, and realize business continuance guarantee that is quick, lightweight, during guaranteeing the system failure, client's key business uninterruptedly accepts.
Concerning WEB layer, the emergent object switched is the WTC Joint Enterprise Joint Enterprise of WTC in WEB server being switched to emergency system, to realize the request forward of all users when normal system is paralysed to emergency system middleware main frame.
The emergent switching of WEB layer mainly through setting up the routing configuration file of normal and emergent two cover systems in the application of WEB application system, point to the two cover WTC configurations (the WTC configuration in the routing configuration file of application system and WEB server is one to one) of WEB server control desk configuration respectively, realize: when needs switch to emergency system from normal system, by performing SHELL script, WEB application system configuration is switched to emergency system routing configuration file, due to man-to-man configuration relation, therefore also achieve and WTC configuration in WEB server is switched to the configuration corresponding to emergency system, to realize emergent switching.
1. system application .properties configuration file configures normal and emergency system routing iinformation, as:
2, two cover configuration filenames are set up;
3, WEB server configuration: call normal and emergency system two and overlap middleware node configuration information, often included a WEB middleware if a W1 and TUXEDO middleware is as T1, configuration information example in cover configuration information:
4, SHELL script, content is call the JSP switching configuration information in internal memory;
5, configuration information is when system starts, and being loaded in internal memory, being set to static variable, for calling by the class reading configuration file; Because configuration information only only loads once when system reboot, so want not restart system and change configuration information, need the configuration information reloading loaded in configuration information covering memory, therefore develop this function that a JSP is used for realizing configuration information heavy duty;
6, JSP be responsible for the getResourceAsStream method by ClassLoader to load/heavy duty is to Installed System Memory;
The present invention is simple to operate, responds fast, performs the switching that a SHELL script can realize system WEB layer, succinct, efficient; Extensibility is strong, functionally possesses enough extended capabilities, meets the needs of business development from now on, supports the quick response to new connecting system, can adapt to the needs that future capacity increases and business changes; There is practicality and maturity, use the technology that industry is ripe, reliable and practical, to meet availability, the dependable with function of system.
The present invention realizes when there is accident, in specific time requirement, can all or part of recovery key business function, and especially for closely related with client perception, that the amount of accepting is larger business realizing priority support.Simultaneously with General Promotion service quality for primary goal, to improve the continuous service ability of key business for standard, reduce service disconnection duration, promote service quality and service level, and reduce operations risks, traffic lost is reduced to acceptable degree, to strengthen enterprise competitiveness.The construction of emergency system can improve emergency guarantee system realization mechanism, and realize business continuance guarantee that is quick, lightweight, during guaranteeing the system failure, client's key business uninterruptedly accepts.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a Web layer switched system, it is characterized in that, comprise Web application system and Web server, described Web application system comprises routing file configuration module, routing file memory module, Web server status monitoring module, emergent handover module, routing file load-on module and memory modules; Normal middleware and emergent middleware is deployed with in described Web server;
Described file configuration module, it for configuring normal system routing configuration file and emergency system routing configuration file, and sends to routing file memory module;
Described routing file memory module, it is for storing normal system routing configuration file and emergency system routing configuration file;
Module monitored by described Web server, its for real-time listening Web server for Web application provides the state of service; Early warning information is sent to emergent handover module when finding that service is abnormal;
Described emergent handover module, it sends route handoff instruction for the early warning information monitoring module transmission according to Web server to routing file load-on module;
Described routing file load-on module, emergency system routing configuration file, for the route handoff instruction according to emergent handover module transmission, is loaded into memory modules and replaces normal system routing configuration file by it;
Described memory modules, it is for resolving normal system routing configuration file or the emergency system routing configuration file of loading, and then the normal middleware of called Web service device or emergent middleware.
2. a kind of Web layer switched system according to claim 1, it is characterized in that, described routing file load-on module, it utilizes JSP normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules.
3. a kind of Web layer switched system according to claim 2, is characterized in that, described JSP realizes the switching of routing configuration information by performing SHELL script.
4. a Web layer changing method, is characterized in that, comprises the steps:
Step 1, at Web application module configuration normal system routing configuration file and emergency system routing configuration file preserving;
Step 2, sets up normal middleware and emergent middleware at Web server;
Step 3, points to the normal middleware in step 2 and emergent middleware by normal system routing configuration file in step 1 and emergency system configuration file branch;
Step 4, Web application module loads normal system routing rule in internal memory, and then calls normal Middleware implementation business function;
Step 5, when normal middleware occurs abnormal, the routing rule in internal memory is replaced with emergency system routing configuration file, and then Web application module calls emergent middleware.
5. a kind of Web layer changing method according to claim 4, is characterized in that, utilize JSP normal system routing configuration file or emergency system routing configuration file to be loaded in memory modules in step 4.
6. a kind of Web layer changing method according to claim 5, is characterized in that, described JSP realizes the switching of routing configuration information by performing SHELL script.
CN201410596743.XA 2014-10-29 2014-10-29 A kind of Web layers switching system and method Active CN104375889B (en)

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 true CN104375889A (en) 2015-02-25
CN104375889B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463418A (en) * 2017-09-12 2017-12-12 北京宝兰德软件股份有限公司 The configuration file generation method and device of a kind of server middleware
CN109921935A (en) * 2019-03-12 2019-06-21 北京百度网讯科技有限公司 Method and apparatus for sending information

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463418A (en) * 2017-09-12 2017-12-12 北京宝兰德软件股份有限公司 The configuration file generation method and device of a kind of server middleware
CN109921935A (en) * 2019-03-12 2019-06-21 北京百度网讯科技有限公司 Method and apparatus for sending information

Also Published As

Publication number Publication date
CN104375889B (en) 2018-04-03

Similar Documents

Publication Publication Date Title
JP6025136B2 (en) Method and computer program for dynamic software version selection
US9960963B2 (en) Dynamic client fail-over during a rolling patch installation based on temporal server conditions
CN101557315B (en) Method, device and system for active-standby switch
US20140026000A1 (en) Highly available server system based on cloud computing
CN104408071A (en) Distributive database high-availability method and system based on cluster manager
CN107846316B (en) Cloud mobile phone management system and exception handling method thereof
US20110083046A1 (en) High availability operator groupings for stream processing applications
WO2016206456A1 (en) Physical machine upgrading method, service migration method and apparatus
CN106874142B (en) Real-time data fault-tolerant processing method and system
CN105468717A (en) Database operation method and device
CN107508694B (en) Node management method and node equipment in cluster
CN108347339B (en) Service recovery method and device
CN104239548A (en) Database disaster recovery system and database disaster recovery method
CN105429799A (en) Server backup method and device
CN112612545A (en) Configuration hot loading system, method, equipment and medium of server cluster
CN106911597B (en) Cross-board forwarding method and device
CN111581287A (en) Control method, system and storage medium for database management
CN104375889A (en) Web layer switching system and method
KR101479919B1 (en) Methods for improved server redundancy in dynamic networks
US9706440B2 (en) Mobile communication system, call processing node, and communication control method
CN111324419A (en) Deployment method, device, equipment and storage medium of combined container
CN112965847B (en) Fault processing method, device, equipment and storage medium of micro-service architecture
CN107465756B (en) Service request processing method and device
CN109936462B (en) Disaster recovery method and device
CN105338058A (en) Application updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant