摘要 |
The invention discloses a device for implementing a dynamic analog remote interface. The device is connected to a calling end system for calling a remote interface of a called system, and the calling end system runs in a Java virtual machine. The device comprises an agent unit, an analog unit and a control unit, the agent unit is used for modifying relevant byte-codes involved in an interface calling request in Java byte-codes loaded in the calling end system, the analog unit is used for setting an analog remote interface according to the remote interface of the called system, and the control unit is used for controlling the agent unit to modify the relevant byte-codes when the remote interface is determined to be unusable, so that the calling end system calls the analog remote interface instead of the remote interface. The invention further correspondingly discloses a method for implementing the dynamic analog remote interface. In an embodiment of the invention, the calling end system is modified by means of dynamically modifying the Java byte-codes, codes are not required to be added into an original system, and potential hazards caused by surfing in formal environments to the system are prevented. |