Starter and start method

A launcher and configuration file technology, applied in the direction of program loading/starting, program control devices, etc., can solve the problems of heavy workload, high startup cost and cumbersome Java independent application program, and reduce startup cost and configuration workload. Effect

Inactive Publication Date: 2014-03-26
TELEFON AB LM ERICSSON (PUBL)
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Because the configuration file is too complicated, when there are more and more independent Java applications on the JVM (Java Virtual Machine, Java Virtual Machine), it will be very cumbersome and heavy to configure each application one by one. Resulting in higher startup costs for each Java stand-alone application

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
  • Starter and start method
  • Starter and start method
  • Starter and start method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] Embodiment 1 of the present invention discloses a starter, such as figure 1 As shown, the initiator includes a reading module 100 , a path generating module 200 and a loading module 300 .

[0049]After research, the applicant found that although the configuration files of Java stand-alone applications are too complicated, each application needs to be configured similarly, that is, the work of launching configurations for multiple Java stand-alone applications involves a lot of repetitive work. Based on this situation, in order to reduce the workload of startup configuration and reduce the cost of application startup, the present invention pre-acquires the repeated and identical configuration items of each Java independent application program, and adds them into the launcher configuration file as a public configuration item for one-time Configuration, the launcher configuration file is used as a common file for subsequent startup of each independent Java application. Sp...

Embodiment 2

[0066] Embodiment 2 of the present invention discloses another structure of the starter, which includes the modules in Embodiment 1, please refer to image 3 , also includes a log redirection module 400 , an encryption module 500 , a search module 600 , a decryption module 700 and a return module 800 .

[0067] The log redirection module 400 is configured to redirect the log to the file specified by the log configuration.

[0068] Wherein, the log configuration is included in the application configuration file, that is, in the second embodiment, the application configuration file also includes the log configuration on the basis of including the application classpath.

[0069] The encryption module 500 is configured to encrypt classes or configuration files or code files of the target Java stand-alone application that need to be encrypted.

[0070] Among them, the configuration file is specifically the configuration file required for accessing the target service during the run...

Embodiment 3

[0081] The third embodiment of the present invention continues to improve and optimize the starters in the first and second embodiments, as Figure 4 As shown, it includes a plug-in deployment module 900 and a path hiding module 1000 on the basis of including the modules introduced above.

[0082] The plug-in deployment module 900 is configured to dynamically load the changed code when the code of the target Java independent application is changed.

[0083] The Java stand-alone application in the prior art cannot implement plug-in deployment, that is, it cannot dynamically load the changed code. When the code is changed, the application needs to be stopped and restarted to load the changed code. In view of this shortcoming, the present invention provides a plug-in deployment module 900 to solve this problem and realize the function of dynamically loading changed codes. Specifically, this module adds a check code to the code in advance, and stipulates that the check code shoul...

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 starter and a start method. The starter comprises a reading module, a path generating module and a loading module. The start method comprises the following steps: adding the same configuration items of each Java independent application as public configuration items into a starter configuration file in advance for configuring; reading the public configurations and a configuration file of a target Java independent application by using a reading module; generating complete classpath according to the public configurations and application configurations by using the path generating module; loading the entry class of the target Java independent application on the basis of the complete classpath by using the loading module to start a target application. According to the start method, the same configuration items of each Java independent application are configured at one time as public configuration items, so that only specific configuration items except the public configurations of the Java independent applications need to be configured, the configuration workload of each application is reduced, and the start cost is reduced.

Description

technical field [0001] The invention belongs to the technical field of management and maintenance of Java independent applications, and in particular relates to a starter and a startup method. Background technique [0002] The Java stand-alone application is started based on the startup command. Before starting each Java stand-alone application, it is necessary to configure the startup command script for the application according to the server conditions in the production environment. [0003] Because the configuration file is too complicated, when there are more and more independent Java applications on the JVM (Java Virtual Machine, Java Virtual Machine), it will be very cumbersome and heavy to configure each application one by one. This results in higher startup costs for each Java stand-alone application. Contents of the invention [0004] In view of this, the object of the present invention is to provide a launcher and a start-up method to overcome the above problems...

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
Inventor 廖锦波
Owner TELEFON AB LM ERICSSON (PUBL)
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