Module loading method and apparatus for web container

A module loading and container technology, applied in the computer field, can solve problems such as slow class search speed

Active Publication Date: 2018-07-13
HUAWEI TECH CO LTD
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a module loading method and device in a web container to solve the problem of slow class search speed during the startup process of the existing web container

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Module loading method and apparatus for web container
  • Module loading method and apparatus for web container
  • Module loading method and apparatus for web container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0051] The basic concepts involved in the embodiments of the present invention are explained below. It should be noted that these explanations are for the purpose of making the embodiments of the present invention easier to understand, and should not be regarded as limiting the protection scope of the present invention.

[0052] Jar package is Java Archive (Java Archive) package, which is the most basic form of class compression package, including javaclass, metadata description files and resource files (text, pictures, etc.); war package is web application archive (webapplication archive) package, except for Jar The package can also contain xml files, JSP files, etc., which are mainly used for the deployment of web applications; the sar package is a service archive package, m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a module loading method and apparatus for a web container, and aims to solve the problem of relatively low class search speed in an existing Web container startup process. Themethod comprises the steps of obtaining a pre-configured black list and / or white list of modules of a first web application in a web container startup process of the first web application; if the white list of the modules is obtained, when a class is searched for through a universal class loader, executing class search and loading in the modules comprised in the white list; and if the black list of the modules is obtained and the white list is not obtained, when the class is searched for through the universal class loader, traversing whether the modules in a corresponding universal class loading path are comprised in the black list or not, and if any module in the corresponding universal class loading path is comprised in the black list, not executing the class search for any module. Therefore, the modules of the black list and the white list can be configured with class loading ranges; the class search time is shortened; and the startup speed is increased.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a module loading method and device in a web container. Background technique [0002] Today's Internet is full of countless web sites, each web site is a web application, and each application will be deployed on a web container. The Web container is actually a Java runtime (Runtime) environment, which provides application classloader, initialization and release of Java Servlet API, and provides HTTP / condom based on Hypertext Transfer Protocol (HTTP) A series of access interfaces of Hyper Text Transfer Protocol over Secure Socket Layer (HTTPS). [0003] The web container is a basic class (class) operating environment. Each Java program will be released in the form of .class and archived in a series of jar, war, and sar software packages. [0004] Web containers need to use their own class loaders when starting, and search for the required class files and resource files from the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44505G06F9/44552
Inventor 赵斌汪辉张良发周俊杰
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products