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

Method for implementing dynamic update of Java program

A technology of dynamic update and method implementation, applied in the computer field, can solve problems such as hard to find errors, program modification, non-existing methods of new classes, use of data, etc., to avoid dynamic update process, ensure continuity, and achieve transparency Effect

Inactive Publication Date: 2008-05-07
SHANGHAI JIAO TONG UNIV
View PDF0 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] After searching the literature of the prior art, it was found that Malabarba S et al published "Runtime support for type-safe dynamic Java classes" on pages 337 to 361 of "Proceedings of the European Conference on Object-Oriented Programming" in 2000, which proposed In order to ensure that the program is still safe after dynamic type replacement, if you only use the type loading that comes with java, it is easy to cause two problems: 1) the original program contains the use of methods and data that do not exist in the new class; 2) Since the inheritance relationship of the new class may change, this will inevitably affect some programs and types that use the parent class of this class, and such errors are not easy to find
In this article, the dynamic update method by extending the Java class loading mechanism is short of it. The article only points out that it can be realized by extending the class loading mechanism, but it does not put forward how to realize the conversion of old and new class objects in the update, and how to transform the program. the solution

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The embodiments of the present invention are described in detail below: the present embodiment is implemented under the premise of the technical solution of the present invention, and detailed implementation and specific operation process are provided, but the protection scope of the present invention is not limited to the following implementation example.

[0027] The Java language program used in the embodiment is used as the basic background, and the whole application is based on a client / server mode software. The client keeps the call to the server uninterrupted, and at the same time, multiple clients can continuously establish new connections. The server-side software continuously inquires a certain port, and when an access request is received, a thread is established to serve it. In order to realize the continuity of the service during the update process, the classes that need to be dynamically updated mainly include the service thread class CompThread (custom cl...

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 relates to a method for realizing dynamic update of Java program in the computer technical field, which comprises the following steps: firstly, modifying the class definitions that need dynamic update in the passive dynamic update program, and adding update support method for realizing judgment to the subobjects of the class objects one by one, wherein the parameter is class loader; secondly, modifying the update class definitions in the dynamic update program, and adding update method for realizing initialization to the variables under the update class objects, wherein, the input parameter is class loader and old object; thirdly, modifying part of the method invocation, data field memory, and object set of the updated program with the Java reflection to realize running recovery of the program; finally, adding update support method to the main class and adding update checkpoint in the main method circulation. The invention has the advantages of avoiding software update that needs halt, update and reboot and avoiding loss caused by halt.

Description

technical field [0001] The present invention relates to a method in the field of computer technology, in particular to a method for realizing dynamic updating of Java programs. Background technique [0002] As computers are more and more widely used in society, various social activities of human beings are more and more dependent on them. Many software systems need to provide customers with uninterrupted services. An important topic, whether it can provide uninterrupted services has become an important indicator for people to measure software systems. For some companies, system outages are unacceptable or cause significant administrative overhead. Financial data processing systems will suffer huge economic losses due to service interruptions, and some systems that need to provide highly reliable services will suffer reputation and economic damage, such as telecommunication systems, online service systems, grid computing and service-oriented computing, etc. ; Another exampl...

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/44
Inventor 张仕黄林鹏徐小辉王德俊伍建焜
Owner SHANGHAI JIAO TONG UNIV
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