Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for updating Java application program

A java application and update method technology, applied in the computer field, can solve the problems of increasing development complexity, large amount of tool development, and inability to achieve hot deployment of all codes, and achieve the effect of improving update efficiency

Active Publication Date: 2012-04-04
ALIBABA GRP HLDG LTD
View PDF3 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For hot deployment, it is impossible to do hot deployment of all codes, especially frequent operations, such as adding methods, adding internal classes, modifying method names, etc.; it will seriously affect the application range of hot deployment methods, which has certain limitations sex
[0011] B. The hot deployment provided by Hotswap is more complicated, and it will cause instability when used, and sometimes crash
[0012] C. The development of the tools used to realize hot deployment through this solution is extremely large, which will increase the complexity of development
[0013] To sum up, none of the existing solutions can realize the ideal hot deployment of Java applications, and a new solution needs to be provided to overcome the defects of the existing solutions

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
  • Method and device for updating Java application program
  • Method and device for updating Java application program
  • Method and device for updating Java application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] refer to figure 1 As shown, in the process of modifying the Java application, in order to reduce the complexity of the operation process and improve its execution efficiency, in the embodiment of the present application, a new hot deployment tool has been developed. Preferably, the hot part The WEB server that tool adopts when running is Jboss, and the code development environment (being code editor) that adopts is: eclipse, and the embodiment of the present application is not limited to Jboss and eclipse two kinds of implementation modes, here is only for example, here is only Exemplary description

[0029] Such as figure 1 As shown, under the prior art, when the developer finishes writing the source code, he will use compilation tools such as antx / maven to compile and package the source code, and finally generate a software product (such as an executable Java application program); then, The developer deploys the software product on the Jboss, then starts Jvm (JavaVi...

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 method and a device for updating a Java application program, which are used for improving the updating efficiency of the Java application program. The method comprises the following steps of: acquiring at least one target class file, establishing a corresponding class loading program for the at least one acquired target class file, and loading the at least one target class file to the Java application program in a running state by using the class loading program in the process of running the Java application program, wherein the class loading program inherits the current environment loading program. Therefore, the hot deployment of the Java application program is realized only by loading the recompiled target class file, so that the updating efficiency of the Java application program is improved. The invention provides the corresponding device simultaneously.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method and device for updating application programs. Background technique [0002] In the Java software development process, developers need to recompile each time they modify the code, package it as an application, and then restart the application to see the final execution effect after modification; after recompiling some applications, restart It takes a long time, for example, applications that cannot be divided into modules (such as WEB layer development of WEB applications), for such applications, even if a small amount of code is modified every time, the entire application needs to be recompiled and packaged , and shut down and restart the WEB application server (eg, Jboss). In enterprise-level development, under normal circumstances, it takes about 5 minutes to modify an ordinary application from modifying the code to shutting down and restarting the WEB server. For l...

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/44G06F9/445
Inventor 杨航
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products