CN102694850B - System integration method based on HttpClient technology - Google Patents

System integration method based on HttpClient technology Download PDF

Info

Publication number
CN102694850B
CN102694850B CN201210150693.3A CN201210150693A CN102694850B CN 102694850 B CN102694850 B CN 102694850B CN 201210150693 A CN201210150693 A CN 201210150693A CN 102694850 B CN102694850 B CN 102694850B
Authority
CN
China
Prior art keywords
request
remote server
server system
user
httpclient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210150693.3A
Other languages
Chinese (zh)
Other versions
CN102694850A (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.)
Inspur Software Technology Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201210150693.3A priority Critical patent/CN102694850B/en
Publication of CN102694850A publication Critical patent/CN102694850A/en
Application granted granted Critical
Publication of CN102694850B publication Critical patent/CN102694850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a system integration method based on an HttpClient technology, which monitors the whole flow of a request and the response condition of remote service when a user calls a target system service function, provides a feedback mechanism of various states in the monitoring process, and can realize the processing of flow switching, forwarding or interruption and the like according to the feedback. When the target system is abnormal, including abnormal service and downtime, the method also provides a request interception mechanism to avoid the influence of the blocking of a large number of abnormal requests on the performance of the system, and simultaneously, the probe detection mechanism is started to recover the requests once the target system is normally accessed.

Description

A kind of system integration method based on HttpClient technologies
Technical field
A kind of system collection based on HttpClient technologies is provided in various systems to need the system integration of the invention Into method.
Background technology
As the continuous development of informatization, enterprise operation system quantity are continuously increased, complexity is also increasingly difficult to To control, this is accomplished by each operation system is integrated in unified element task platform.And common system integration single-sign-on Implementation method is taken using the integrated goal systems of IFRAME modes, based on Apache HTTP Server as logged in URL using simulation Single-sign-on of reverse proxy function of business device etc. all there are problems that following:The request process of integrated business function can not The setting of the connection detail parameters such as time-out time or page read access time of the more uncontrollable goal systems of control, cannot be according to long-range System running state control business flow process trend, goal systems a large amount of exception request occlusive effects the system performances when unavailable Deng.These problems not only have impact on integrated business function quality, and can more likely affect the performance of the system.
The content of the invention
It is an object of the invention to provide a kind of system integration method based on HttpClient technologies.
The purpose of the present invention is realized in the following manner, using Apache Commons Httpclient technologies and clothes Business device is communicated, and realizes the User logs in of goal systems, while preserving and managing the session information of user, system arranges various Parameter carries out precise control come the access request to remote system, and goal systems refers in multiple remote systems wherein one Individual system, in the business function of user's request access target system, monitoring is whole to ask flow process and service response situation, and carries For the feedback of various states during this monitoring, then feedack is carried out including flowing according to practical business demand Switching, forwarding or the concrete process interrupted of journey, when there is including abnormal service, the exception of machine of delaying in goal systems, the method Also provide request interception mechanism and avoid a large amount of exception request occlusive effects the system performances, while enabling probe detection mechanism one Denier goal systems accesses normal recovery request in time, finally realizes system request process control and perfect exception handling, Specifically include following steps:
A. goal systems is logged in using Apache Commons Httpclient technical modelling HTTP clients, and will step on User session information after record success is preserved and is managed;
B. basis wants integrated system to arrange includes that connection time-out, the page read time-out, solicited message coded system, respond The various required parameters of page coded system, carry out precise control come the access request to remote system by these parameters;
C., in the business function of user's request access target system, monitoring is whole to ask flow process and service response situation, And the feedback of various states during this monitoring is provided, including request is rejected, connects time-out, login failed for user, request The information of page time-out, then according to business demand, make whether 1. access again, 2. whether need to log in, 3. whether exceed Failure maximum times, the loop detection cycle 4. whether is reached, 5. whether exceeded loop detection number of times, 6. whether reached time-out time Process;
D. when goal systems occur it is abnormal, including service it is abnormal, delay machine when request interception mechanism is provided, it is to avoid great Liang Yi Occlusive effects the system performance is asked often;
E. while asking interception mechanism to start, probe mechanism also starts therewith, and constantly detection is long-range on backstage for probe System, proposes recovery request if goal systems is accessed normally in time.
It is integrated, the integrated system to the deployed each operation system reached the standard grade based on the integrated system of HttpClient technologies System calls the functional module of each operation system by way of Transfer Parameters, obtains the parameter value for needing.The system being integrated Limit with logging in, remote port is accessed etc. requires, but be integrated system occur connection time-out, the page cannot respond to, and work( The problems such as login that energy interface interchange occurs is redirected, thus integrated system solves the problems, such as integrated failure by following functions:
(1)Login page is configured.Including " key " value parameter for obtaining user name, password, identifying code;Configuration all " keys " Property value;
(2)Page cache required parameter is configured.Including the cache file for obtaining the system that is integrated;Asking for cache file is set Evaluation;
(3)Page response failure parameter configuration.Including the maximum times for arranging request failure;The request stand-by period is set; The loop detection cycle is set;Loop detection number of times is set;
(4)Main frame connection number is arranged.Arrange including main frame maximum number of connections, multi-thread number of passes.
The invention has the beneficial effects as follows:The inventive method is fed back using request process precise control, process status, request is blocked Cut, probe detection etc. strategy with mechanism innovation solve prior art presence each problem.Using Apache Commons Httpclient technical modelling HTTP clients(Such as browser)Carry out communicating realizing goal systems with server User logs in, while preserving and managing the session information of user.System can be by arranging various required parameters come to long-range system The access of system carries out precise control, and whole request flow process and service are monitored in the business function of user's request access target system Response condition and provide this monitoring during various states feedback, feedack is had according to practical business demand Body process, such as carries out switching, forwarding or interruption of flow process etc..When exception occurs in goal systems(Exception, machine of delaying are serviced such as)When this Method also provides request interception mechanism and avoids a large amount of exception request occlusive effects the system performances, while enabling probe explorer Once system goal systems accesses normal recovery request in time.The controllable and perfect exception handling of request process is realized finally.
Description of the drawings
Fig. 1 is that required parameter arranges functional diagram in detail;
Fig. 2 is system integration overall flow figure.
Specific embodiment
The method of the present invention is described in detail below with reference to Figure of description.
The present invention entirely asks the uncontrollable problem of flow process in solving the conventional system integration, can be according to actual industry Business requirement is accurately controlled request process or operation flow is turned to, and this is a quantum jump of system integration problem.Novelty is drawn Enter request to intercept and probe detection mechanism, if having prevented to be possible to cause this when traditional integrated system occurs abnormal or unavailable The hidden danger of ground system crash, the stability and security of the system operation for greatly improving, the degree of coupling between system are lower, relatively solely Vertical property is higher.New integrated system can be conveniently added in the invention from exploitation angle, it is also possible to be easily transplanted to other items In mesh.
The operating process key step of the inventive method is as follows:
A. goal systems is logged in using Apache Commons Httpclient technical modelling HTTP clients, and will step on User session information after record success is preserved and is managed, and when user sends access request to goal systems again later, one is concurrent Send;
B. different required parameters are arranged according to different integrated systems, when such as connection time-out time, the page read time-out Between, the maximum frequency of failure, the loop detection cycle, loop detection number of times, solicited message coded system, response page coded system, Whether enable this single-sign-on to act on behalf of and per other detail parameters such as main frame maximum numbers of connections, by these parameters come to long-range system The access request of system carries out precise control;
C. monitor in the business function of user's request access target system and entirely ask flow process and service response situation simultaneously Feedback such as the request address that there is provided various states during this monitoring is illegal, request is rejected, connect the mistake of overtime, User logs in Lose, user conversation time-out failure, accession page do not exist or shift, requests for page time-out, user's unauthorized access etc., Ran Hougen Factually border business demand carries out respective handling respectively to specific feedback information, such as simply points out, carries out the switching of flow process, turns Send out or interrupt etc.;
D. when exception occurs in goal systems(Exception, machine of delaying are serviced such as)When this method provide request interception mechanism.When with The family access request frequency of failure then no longer sends to remote system when having reached threshold values and asks, and the request for receiving later is all straight Connect interception and avoid a large amount of exception request occlusive effects the system performances;
E. while asking interception mechanism to start, probe mechanism also starts therewith, and constantly detection is long-range on backstage for probe System, once goal systems accesses normal recovery request in time.
In addition to the technical characteristic described in specification, the known technology of those skilled in the art is.

Claims (1)

1. a kind of method integrated based on HttpClient technological systems, it is characterised in that using Apache Commons Httpclient technologies carry out integrated management to remote server system, realize the User logs in of remote server system, while The session information of user is preserved and manages, after remote server system is integrated, by various parameters being arranged come to remote server The access request of system carries out precise control, and when request accesses the business function of remote server system, monitoring is whole to ask Flow process and service response situation, and the feedback of various states during this monitoring is provided;When wrapping occurs in remote server system When including abnormal service, the exception of machine of delaying, there is provided request interception mechanism avoids a large amount of exception request occlusive effects and remote server The performance communicated by integrated system, while probe detection mechanism is enabled, once remote server system accesses normal extensive in time It is multiple to ask, user's request process control and perfect exception handling are finally realized, following steps are specifically included:
A. remote server system is logged in using Apache Commons Httpclient technical modelling HTTP clients, and will User session information after logining successfully is preserved and is managed;
B. using the method that HttpClient technological systems are integrated, it is that remote server system setting includes connection time-out, the page Time-out, the various required parameters of solicited message coded system, response page coded system are read, by these parameters come to long-range The access request of server system carries out precise control;
C. monitor in the business function of user's request access target system and entirely ask flow process and service response situation and provide The feedback of various states during this monitoring, including:Request address is illegal, request is rejected, connect time-out, User logs in loses Lose, user conversation time-out fails, accession page does not exist or shifts, requests for page overtime, user's unauthorized access, then basis Practical business demand carries out respective handling respectively to specific feedback information, including simply point out, carry out flow process switching, turn Send out or interrupt;
D. when remote server system occur it is abnormal, including service it is abnormal, delay machine when request interception mechanism is provided, it is to avoid it is a large amount of Exception request occlusive effects remote server system performance;
E., while asking interception mechanism to start, probe mechanism also starts therewith, and probe constantly detects remote service on backstage The request of device system user, proposes recovery request if remote server system is accessed normally in time.
CN201210150693.3A 2012-05-16 2012-05-16 System integration method based on HttpClient technology Active CN102694850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210150693.3A CN102694850B (en) 2012-05-16 2012-05-16 System integration method based on HttpClient technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210150693.3A CN102694850B (en) 2012-05-16 2012-05-16 System integration method based on HttpClient technology

Publications (2)

Publication Number Publication Date
CN102694850A CN102694850A (en) 2012-09-26
CN102694850B true CN102694850B (en) 2017-04-05

Family

ID=46860133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210150693.3A Active CN102694850B (en) 2012-05-16 2012-05-16 System integration method based on HttpClient technology

Country Status (1)

Country Link
CN (1) CN102694850B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306293A (en) * 2015-10-14 2016-02-03 浪潮软件集团有限公司 Data acquisition method based on virtual login
CN105488002A (en) * 2015-11-23 2016-04-13 浪潮集团有限公司 Data integration method and apparatus
CN105763365B (en) * 2016-01-26 2020-05-12 新华三技术有限公司 Exception handling method and device
CN106604269A (en) * 2016-11-30 2017-04-26 努比亚技术有限公司 Mobile terminal network communication method and system
CN107948250B (en) * 2017-11-02 2020-12-04 上海读客数字信息技术有限公司 Method and device for adjusting user access amount
CN110049119A (en) * 2019-04-12 2019-07-23 苏州浪潮智能科技有限公司 A kind of service request processing method, device and relevant device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215232A (en) * 2011-06-07 2011-10-12 浪潮齐鲁软件产业有限公司 Single sign-on method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215232A (en) * 2011-06-07 2011-10-12 浪潮齐鲁软件产业有限公司 Single sign-on method

Also Published As

Publication number Publication date
CN102694850A (en) 2012-09-26

Similar Documents

Publication Publication Date Title
CN102694850B (en) System integration method based on HttpClient technology
US10341349B2 (en) Session security splitting and application profiler
US9325725B2 (en) Automated deployment of protection agents to devices connected to a distributed computer network
US7788366B2 (en) Centralized network control
US9928359B1 (en) System and methods for providing security to an endpoint device
WO2015188579A1 (en) Distributed virtual firewall apparatus and method, and firewall controller
JP2019194854A (en) System, method, and computer program for media session simultaneity management with repeated license updates
CN103198254B (en) System and method for anti-virus protection
JP2010537563A (en) Status remote monitoring and control device
CA2526759A1 (en) Event monitoring and management
US8239880B1 (en) Orchestrating flow of event information to several event handling components
DE112012003293T5 (en) Apparatus and method for improving data security in a host computer device and a peripheral device
US20230198874A1 (en) Link detection method and system
CN109120599A (en) A kind of external connection managing and control system
WO2013126430A1 (en) Systems and methods involving virtual machine host isolation over a network
US9392006B2 (en) Method and apparatus for management and troubleshooting of a processing system
EP2810133B1 (en) Dynamic configuration of an industrial control system
CN102752289A (en) Master station for power utilization information collecting system
CN101442437B (en) Method, system and equipment for implementing high availability
CN105871849A (en) Firewall system architecture
CN112202727B (en) Server-side verification user management method, system, terminal and storage medium
US8667509B1 (en) Providing context information for events to an event handling component
CN105245336A (en) Document encryption management system
CN103491141A (en) Application server and request processing method
US8763015B1 (en) Efficient multi-node system for providing event information to event handling components

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Applicant after: Inspur Group Co., Ltd.

Address before: 250014 Huayang Road, Ji'nan Development Zone, Shandong, China, 50

Applicant before: Shandong Inspur software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200615

Address after: 250100 Inspur Science Park, No. 1036, Inspur Road, high tech Zone, Jinan City, Shandong Province

Patentee after: Inspur Software Technology Co.,Ltd.

Address before: 250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Patentee before: INSPUR GROUP Co.,Ltd.

TR01 Transfer of patent right