WO2017054501A1 - Application management method, device and system - Google Patents

Application management method, device and system Download PDF

Info

Publication number
WO2017054501A1
WO2017054501A1 PCT/CN2016/084952 CN2016084952W WO2017054501A1 WO 2017054501 A1 WO2017054501 A1 WO 2017054501A1 CN 2016084952 W CN2016084952 W CN 2016084952W WO 2017054501 A1 WO2017054501 A1 WO 2017054501A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
management
proxy layer
tomcat server
tomcat
Prior art date
Application number
PCT/CN2016/084952
Other languages
French (fr)
Chinese (zh)
Inventor
龚红星
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017054501A1 publication Critical patent/WO2017054501A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • This document relates to, but is not limited to, the field of application management, and in particular, to an application management method, apparatus and system configured to manage applications deployed on a Tomcat server.
  • the Tomcat server on the physical server is not only used for a web application, but a plurality of web applications are deployed.
  • the Tomcat server needs to be stopped, for an application. Updates, but must stop all other applications deployed on the Tomcat server; for example, a Tomcat server has five applications, which correspond to different services, and now need to upgrade a certain service, and need to stop all services, and if the service corresponds to The application is large, and it takes a lot of time to start and stop. It also affects the non-upgraded service usage; that is, the related application management method cannot implement separate management of the application, resulting in high application management cost.
  • the embodiment of the invention provides an application management method, device and system, which can implement separate management of an application, thereby reducing application management costs.
  • An embodiment of the present invention provides an application management method, including: receiving a management operation based on a JAVA management extension protocol; and managing a corresponding application deployed on a Tomcat server according to a JAVA management extension protocol according to a management operation.
  • the management operation includes a shutdown operation; and the corresponding application deployed on the Tomcat server is managed by: the background JAVA obtains the device proxy layer object of the Tomcat server, according to the obtained The managed application name in the device proxy layer object is obtained by the device corresponding to the application registered on the device proxy layer, and the application method of the corresponding application is closed by using the remote procedure call protocol to remotely invoke the stop application method provided by the device.
  • the management operation includes: enabling the operation; managing the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object.
  • the device that is registered on the device proxy layer is remotely invoked by the remote procedure call protocol to open the application method provided by the device, and the application service corresponding to the application is set to be available.
  • the management operation includes a loading operation; and managing the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object.
  • the device registered on the device proxy layer remotely invokes the interface method provided by the device through the remote procedure call protocol, copies the application file package to the network application directory, and invokes the stop application method provided by the device to set the application service of the corresponding application to load.
  • the management operation includes an uninstall operation.
  • the management of the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object.
  • the management of the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object.
  • the management operation includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object.
  • Corresponding to the device registered by the application on the device proxy layer remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
  • the management operation further includes an installation operation; the application management method further includes: uploading an application file package of the Tomcat specification to the Tomcat server.
  • the management operation further includes an upgrade and/or a rollback operation.
  • the management of the corresponding application deployed on the Tomcat server includes: uploading a user-developed upgrade package and/or rolling back the package to the Tomcat server, and upgrading the corresponding application. And/or rollback.
  • An embodiment of the present invention provides an application management apparatus, including:
  • a receiving module configured to receive a management operation based on a JAVA management extension protocol
  • the management module is configured to manage the corresponding application deployed on the Tomcat server according to the management operation and based on the JAVA management extension protocol.
  • the management operation includes a shutdown operation; the management module is configured to acquire a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object.
  • the remote application process remotely invokes the stop application method provided by the device, and sets the application service of the corresponding application to be closed.
  • the management operation includes: opening the operation; the management module is configured to acquire the device proxy layer object of the Tomcat server, and obtain the device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object.
  • the remote application process is remotely invoked by the remote procedure call protocol to set the application service of the corresponding application to be available.
  • the management operation includes a loading operation; the management module is configured to acquire a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. Remotely invoke the interface method provided by the device through the remote procedure call protocol, copy the application file package to the network application directory, and invoke the stop application method provided by the device to set the application service of the corresponding application to be loaded.
  • the management operation includes an uninstall operation; the management module is configured to obtain a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. Remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
  • the management operation further includes an installation operation; the management module is further configured to upload an application file package of the Tomcat specification to the Tomcat server.
  • the management operation further includes an upgrade and/or a rollback operation; the management module is further configured to upload a user-developed upgrade package and/or a rollback package to the Tomcat server, and upgrade and/or roll back the corresponding application.
  • the embodiment of the present invention provides an application management system, which includes a Tomcat server and an application management device provided by the embodiment of the present invention.
  • the application management device performs a corresponding deployment on the Tomcat server based on the JAVA management extension protocol according to the management operation.
  • the application is managed.
  • An embodiment of the present invention provides an application management method, and according to a management operation, manages a corresponding application deployed on a Tomcat server based on a JAVA management extension protocol, because Within the framework of the JAVA management extension protocol, the applications on the Tomcat server exist as a single device. On this basis, if you upgrade an application on a Tomcat server, you do not need to stop the entire Tomcat server. The operational applications are processed separately, minimizing the impact and risk of operations, enabling separate management of applications, thereby reducing application management costs.
  • FIG. 1 is a schematic structural diagram of an application management apparatus according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of an application management method according to a second embodiment of the present invention.
  • FIG. 3 is a schematic diagram of networking of an application management system in a third embodiment of the present invention.
  • FIG. 4 is a schematic diagram of switching of an application state in a third embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of an application management apparatus according to a first embodiment of the present invention.
  • the application management apparatus 1 provided by the present invention includes:
  • the receiving module 11 is configured to receive a management operation based on the JAVA management extended protocol
  • the management module 12 is configured to manage the corresponding application deployed on the Tomcat server according to the JAVA management extension protocol according to the management operation.
  • the management operation includes a shutdown operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object.
  • the device registered on the device proxy layer remotely invokes the stop application method provided by the device through the remote procedure call protocol, and sets the application service of the corresponding application to be closed.
  • the management operation includes an open operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, according to the obtained device proxy layer object
  • the managed application name in the device is obtained by the device that is registered on the device proxy layer, and the application method provided by the device is remotely invoked through the remote procedure call protocol, and the application service corresponding to the application is set to be available.
  • the management operation includes a loading operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object.
  • the device registered on the device proxy layer remotely invokes the interface method provided by the device through the remote procedure call protocol, copies the application file package to the network application directory, and invokes the stop application method provided by the device to set the application service of the corresponding application to be loaded.
  • the management operation includes an uninstall operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object.
  • the device registered on the device proxy layer remotely invokes the uninstall application method provided by the device through the remote procedure call protocol, stops the application service, and deletes the application file.
  • the management operation further includes an installation operation; the management module 12 in the above embodiment is further configured to upload the Tomcat-compliant application file package to the Tomcat server.
  • the management operation further includes an upgrade and/or a rollback operation; the management module 12 in the above embodiment is further configured to upload a user-developed upgrade package and/or a rollback package to the Tomcat server, and upgrade the corresponding application. And/or rollback.
  • the present invention provides an application management system, including a Tomcat server, and an application management apparatus 1 provided by the present invention.
  • the application management apparatus 1 deploys on the Tomcat server based on the JAVA management extension protocol according to the management operation. Manage the application.
  • FIG. 2 is a flowchart of an application management method according to a second embodiment of the present invention.
  • the application management method provided by the present invention may be implemented by using an application management apparatus, including the following steps:
  • S201 Receive a management operation based on a JAVA management extension protocol
  • the management operation in the foregoing embodiment includes a shutdown operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object
  • the managed application name is obtained by the device corresponding to the application registered on the device proxy layer, and the application method of the corresponding application is set to be closed by remotely calling the stop application method provided by the device through the remote procedure call protocol.
  • the management operation in the foregoing embodiment includes an open operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object
  • the managed application name is obtained by the device corresponding to the application registered on the device proxy layer, and the application application provided by the remote calling device is remotely invoked by the remote procedure call protocol, and the application service corresponding to the application is set to be available.
  • the management operation in the foregoing embodiment includes a loading operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object
  • the managed application name is obtained by the corresponding device registered on the device proxy layer, and the interface method provided by the remote calling device is remotely invoked by the remote procedure call protocol, the application file package is copied to the network application directory, and the stop application method provided by the device is invoked. , set the application service of the corresponding application to load.
  • the management operation in the foregoing embodiment includes an uninstall operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, and obtaining, according to the managed application name, Corresponding to the device registered by the application on the device proxy layer, remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
  • the management operation in the foregoing embodiment further includes an installation operation; the application management method further includes: uploading an application file package of the Tomcat specification to the Tomcat server.
  • management operations in the foregoing embodiments further include an upgrade and/or a rollback operation; managing the corresponding application deployed on the Tomcat server further includes: uploading a user-developed upgrade package and/or rolling back the package to The Tomcat server upgrades and/or rolls back the corresponding application.
  • the purpose of this embodiment is that the user can customize the management mechanism of the Tomcat server, and implement the call management based on the JMX (Java Management Extensions) protocol on the remote Tomcat server in the customized system.
  • Flexible management of applications Through JMX technology, remotely call the MBean (that is, the device) provided by Tomcat, and perform separate operations on the application deployed on the Tomcat server, such as: deploy, start, stop, delete, and so on.
  • any object that needs to be managed is a device, MBean, which can be managed using the proxy layer, the MBeanServer. After the application is deployed to the Tomcat server, registering the MBean with the MBeanServer of the Tomcat server is done by the Tomcat server.
  • the embodiment of the present invention can directly process the application that needs to be operated, and minimize the impact and risk of the operation, if the application is upgraded on a certain Tomcat and does not need to stop the entire Tomcat. .
  • a user has three applications on the Tomcat server, which correspond to different services.
  • upgrading a service if you need to stop all services according to the existing management method, if the application is large, it needs to consume a large amount of time. Time, and also affects the non-upgraded service usage.
  • an application needs to be upgraded, and only the corresponding management platform is stopped, the corresponding application is stopped, and the application is upgraded. “Open” can save the time and cost and reduce the operational risk without stopping and starting the entire Tomcat server.
  • FIG. 3 the schematic diagram of the application management system provided by the present invention is shown in FIG. 3, which includes: JMX Manager (Administrator) 1, that is, the application management device 1, Tomcat2, and Web Browser provided by the present invention (Web browsing) 3) SNMP (Simple Network Management Protocol) Manager4; wherein Tomcat2 includes a plurality of device MBeans 21, a device proxy layer MBeanServer22, and an external interface (Adapter, which converts an interface of a class into what the client expects An interface that allows two classes that could not work together due to interface mismatch to work together.
  • RMI Remote Method Invocation
  • Adapter231 HTTP (HyperText Transfer Protocol) Adapter233
  • SNMP Adapter234 the application state transition provided by the present invention is as shown in FIG. 4, and may include operations such as opening, closing, loading, uninstalling, upgrading, and rolling back.
  • the Tomcat server has the installation management application provided by this method.
  • the application provides "loading”, “unloading”, “closing”, and "opening" operations.
  • the "loading" corresponds to the background JAVA to obtain the MBeanServer object of the Tomcat server.
  • the MBean registered by the application on the MBeanServer is obtained, and the MBean is remotely called by the RPC (Remote Procedure Call Protocol).
  • Interface method copy the application file package to the web application Webapp directory, and call the stop application method in the MBean.
  • the application state is loaded, that is, the system file is in the application server, but the service is unavailable and cannot be accessed. .
  • the "uninstall" corresponds to the background JAVA to obtain the MBeanServer object of the Tomcat server, according to the managed application name, obtain the MBean registered by the application on the MBeanServer, remotely invoke the uninstall application method provided by the MBean through the RPC, stop the application service, and delete the application. file. Application files are not retained.
  • the "closed” for the "on” state of the application click "close”, corresponding to the background JAVA to obtain the MBeanServer object of the Tomcat server, according to the managed application name, get the MBean registered by the application on the MBeanServer, remotely call through RPC
  • the MBean provides a method to stop the application, and the application service is set to be closed. At this time, the application cannot be accessed through the browser.
  • the application file remains on the server.
  • this embodiment can expand the “upgrade” and “rollback” interfaces, and can define the upgrade package specification for the user.
  • the user uploads the upgrade or user back developed by the user through the method provided by the system. Roll the package to upgrade or roll back the application.
  • the embodiment of the present invention provides an application management method, and manages a corresponding application deployed on a Tomcat server according to a JAVA management extension protocol according to a management operation, and an application on a Tomcat server in a framework based on the JAVA management extension protocol. All of them exist as a single device. On this basis, if you upgrade an application on a Tomcat and do not need to stop the entire Tomcat, you can separately process the application that needs to be operated, and the impact and risk of the operation. Minimized, enabling separate management of applications, reducing application management costs.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.

Abstract

An application management method, device and system. The method comprises: receiving a management operation conforming to a java management extensions protocol; and managing, according to the management operation, based on the java management extensions protocol, a corresponding application deployed on a Tomcat server.

Description

一种应用管理方法、装置及系统Application management method, device and system 技术领域Technical field
本文涉及但不限于应用管理领域,尤其涉及一种设置为对部署于Tomcat服务器上的应用进行管理的应用管理方法、装置及系统。This document relates to, but is not limited to, the field of application management, and in particular, to an application management method, apparatus and system configured to manage applications deployed on a Tomcat server.
背景技术Background technique
Tomcat(apache提供的一个免费的开源web应用服务器名称)服务器作为一个免费的开源的、轻量级万维网(WEB,World Wide Web)应用服务器,已经在全世界得到广泛的应用。Tomcat (a free open source web application server name provided by Apache) as a free open source, lightweight World Wide Web (WEB) application server has been widely used around the world.
当前,物理服务器上的Tomcat服务器并不仅仅是给一个web应用使用,而是部署了多个web应用,在相关技术中,当某一个应用需要升级的时候,需要停止Tomcat服务器,为了某一个应用的更新,而必须停止其他所有部署在Tomcat服务器上的应用;例如某Tomcat服务器上装了5个应用,分别对应不同业务,现需要对某一业务升级,需要停止所有业务,而若该业务对应的应用程序较大,启停都需要消耗大量时间,同时还影响到非升级的业务使用;即,相关应用管理方法不能实现应用的单独管理,导致应用管理成本大。Currently, the Tomcat server on the physical server is not only used for a web application, but a plurality of web applications are deployed. In related technologies, when an application needs to be upgraded, the Tomcat server needs to be stopped, for an application. Updates, but must stop all other applications deployed on the Tomcat server; for example, a Tomcat server has five applications, which correspond to different services, and now need to upgrade a certain service, and need to stop all services, and if the service corresponds to The application is large, and it takes a lot of time to start and stop. It also affects the non-upgraded service usage; that is, the related application management method cannot implement separate management of the application, resulting in high application management cost.
因此,如何提供一种可以降低应用管理成本的应用管理方法,是本领域技术人员亟待解决的技术问题。Therefore, how to provide an application management method that can reduce the application management cost is a technical problem to be solved by those skilled in the art.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种应用管理方法、装置及系统,能够实现应用的单独管理,从而降低应用管理成本。The embodiment of the invention provides an application management method, device and system, which can implement separate management of an application, thereby reducing application management costs.
本发明实施例提供了一种应用管理方法,其包括:接收基于JAVA管理扩展协议的管理操作;根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。An embodiment of the present invention provides an application management method, including: receiving a management operation based on a JAVA management extension protocol; and managing a corresponding application deployed on a Tomcat server according to a JAVA management extension protocol according to a management operation.
可选的,管理操作包括关闭操作;对部署于Tomcat服务器上的对应应用进行管理包括:后台JAVA获取Tomcat服务器的设备代理层对象,根据获得 的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。Optionally, the management operation includes a shutdown operation; and the corresponding application deployed on the Tomcat server is managed by: the background JAVA obtains the device proxy layer object of the Tomcat server, according to the obtained The managed application name in the device proxy layer object is obtained by the device corresponding to the application registered on the device proxy layer, and the application method of the corresponding application is closed by using the remote procedure call protocol to remotely invoke the stop application method provided by the device.
可选的,管理操作包括开启操作;对部署于Tomcat服务器上的对应应用进行管理包括:后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。Optionally, the management operation includes: enabling the operation; managing the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object. The device that is registered on the device proxy layer is remotely invoked by the remote procedure call protocol to open the application method provided by the device, and the application service corresponding to the application is set to be available.
可选的,管理操作包括加载操作;对部署于Tomcat服务器上的对应应用进行管理包括:后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。Optionally, the management operation includes a loading operation; and managing the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object. Correspondingly, the device registered on the device proxy layer remotely invokes the interface method provided by the device through the remote procedure call protocol, copies the application file package to the network application directory, and invokes the stop application method provided by the device to set the application service of the corresponding application to load.
可选的,管理操作包括卸载操作;对部署于Tomcat服务器上的对应应用进行管理包括:后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。Optionally, the management operation includes an uninstall operation. The management of the corresponding application deployed on the Tomcat server includes: the background JAVA obtains the device proxy layer object of the Tomcat server, and obtains the managed application name in the obtained device proxy layer object. Corresponding to the device registered by the application on the device proxy layer, remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
可选的,管理操作还包括安装操作;应用管理方法还包括:上传Tomcat规范的应用文件包到Tomcat服务器。Optionally, the management operation further includes an installation operation; the application management method further includes: uploading an application file package of the Tomcat specification to the Tomcat server.
可选的,管理操作还包括升级和/或回滚操作;对部署于Tomcat服务器上的对应应用进行管理包括:上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。Optionally, the management operation further includes an upgrade and/or a rollback operation. The management of the corresponding application deployed on the Tomcat server includes: uploading a user-developed upgrade package and/or rolling back the package to the Tomcat server, and upgrading the corresponding application. And/or rollback.
本发明实施例提供了一种应用管理装置,其包括:An embodiment of the present invention provides an application management apparatus, including:
接收模块,设置为接收基于JAVA管理扩展协议的管理操作;a receiving module configured to receive a management operation based on a JAVA management extension protocol;
管理模块,设置为根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。 The management module is configured to manage the corresponding application deployed on the Tomcat server according to the management operation and based on the JAVA management extension protocol.
可选的,管理操作包括关闭操作;管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。Optionally, the management operation includes a shutdown operation; the management module is configured to acquire a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. The remote application process remotely invokes the stop application method provided by the device, and sets the application service of the corresponding application to be closed.
可选的,管理操作包括开启操作;管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。Optionally, the management operation includes: opening the operation; the management module is configured to acquire the device proxy layer object of the Tomcat server, and obtain the device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. The remote application process is remotely invoked by the remote procedure call protocol to set the application service of the corresponding application to be available.
可选的,管理操作包括加载操作;管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。Optionally, the management operation includes a loading operation; the management module is configured to acquire a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. Remotely invoke the interface method provided by the device through the remote procedure call protocol, copy the application file package to the network application directory, and invoke the stop application method provided by the device to set the application service of the corresponding application to be loaded.
可选的,管理操作包括卸载操作;管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。Optionally, the management operation includes an uninstall operation; the management module is configured to obtain a device proxy layer object of the Tomcat server, and obtain a device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object. Remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
可选的,管理操作还包括安装操作;管理模块还设置为上传Tomcat规范的应用文件包到Tomcat服务器。Optionally, the management operation further includes an installation operation; the management module is further configured to upload an application file package of the Tomcat specification to the Tomcat server.
可选的,管理操作还包括升级和/或回滚操作;管理模块还设置为上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。Optionally, the management operation further includes an upgrade and/or a rollback operation; the management module is further configured to upload a user-developed upgrade package and/or a rollback package to the Tomcat server, and upgrade and/or roll back the corresponding application.
本发明实施例提供了一种应用管理系统,其包括Tomcat服务器、以及本发明实施例提供的应用管理装置,通过应用管理装置根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。The embodiment of the present invention provides an application management system, which includes a Tomcat server and an application management device provided by the embodiment of the present invention. The application management device performs a corresponding deployment on the Tomcat server based on the JAVA management extension protocol according to the management operation. The application is managed.
本发明实施例的有益效果:Advantageous effects of embodiments of the present invention:
本发明实施例提供了一种应用管理方法,根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理,由于在基于 JAVA管理扩展协议的框架内,Tomcat服务器上的应用都是作为一个设备单独存在的,在此基础上,如果对某个Tomcat服务器上某个应用升级,并不需要停止整个Tomcat服务器,可以对需要操作的应用单独进行处理,将操作带来的影响和风险降到最低,实现了应用的单独管理,从而降低了应用管理成本。An embodiment of the present invention provides an application management method, and according to a management operation, manages a corresponding application deployed on a Tomcat server based on a JAVA management extension protocol, because Within the framework of the JAVA management extension protocol, the applications on the Tomcat server exist as a single device. On this basis, if you upgrade an application on a Tomcat server, you do not need to stop the entire Tomcat server. The operational applications are processed separately, minimizing the impact and risk of operations, enabling separate management of applications, thereby reducing application management costs.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明第一实施例提供的应用管理装置的结构示意图;1 is a schematic structural diagram of an application management apparatus according to a first embodiment of the present invention;
图2为本发明第二实施例提供的应用管理方法的流程图;2 is a flowchart of an application management method according to a second embodiment of the present invention;
图3为本发明第三实施例中的应用管理系统的组网示意图;3 is a schematic diagram of networking of an application management system in a third embodiment of the present invention;
图4为本发明第三实施例中的应用状态的切换示意图。FIG. 4 is a schematic diagram of switching of an application state in a third embodiment of the present invention.
本发明的实施方式Embodiments of the invention
现通过具体实施方式结合附图的方式对本发明做出进一步的诠释说明。The invention will now be further illustrated by way of specific embodiments in conjunction with the accompanying drawings.
第一实施例:First embodiment:
图1为本发明第一实施例提供的应用管理装置的结构示意图,由图1可知,在本实施例中,本发明提供的应用管理装置1包括:FIG. 1 is a schematic structural diagram of an application management apparatus according to a first embodiment of the present invention. As shown in FIG. 1, in the embodiment, the application management apparatus 1 provided by the present invention includes:
接收模块11,设置为接收基于JAVA管理扩展协议的管理操作;The receiving module 11 is configured to receive a management operation based on the JAVA management extended protocol;
管理模块12,设置为根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。The management module 12 is configured to manage the corresponding application deployed on the Tomcat server according to the JAVA management extension protocol according to the management operation.
在一些实施例中,管理操作包括关闭操作;上述实施例中的管理模块12是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。In some embodiments, the management operation includes a shutdown operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object. The device registered on the device proxy layer remotely invokes the stop application method provided by the device through the remote procedure call protocol, and sets the application service of the corresponding application to be closed.
在一些实施例中,管理操作包括开启操作;上述实施例中的管理模块12是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象 中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。In some embodiments, the management operation includes an open operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, according to the obtained device proxy layer object The managed application name in the device is obtained by the device that is registered on the device proxy layer, and the application method provided by the device is remotely invoked through the remote procedure call protocol, and the application service corresponding to the application is set to be available.
在一些实施例中,管理操作包括加载操作;上述实施例中的管理模块12是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。In some embodiments, the management operation includes a loading operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object. The device registered on the device proxy layer remotely invokes the interface method provided by the device through the remote procedure call protocol, copies the application file package to the network application directory, and invokes the stop application method provided by the device to set the application service of the corresponding application to be loaded.
在一些实施例中,管理操作包括卸载操作;上述实施例中的管理模块12是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。In some embodiments, the management operation includes an uninstall operation; the management module 12 in the above embodiment is configured to acquire a device proxy layer object of the Tomcat server, and obtain a corresponding application according to the managed application name in the obtained device proxy layer object. The device registered on the device proxy layer remotely invokes the uninstall application method provided by the device through the remote procedure call protocol, stops the application service, and deletes the application file.
在一些实施例中,管理操作还包括安装操作;上述实施例中的管理模块12还设置为上传Tomcat规范的应用文件包到Tomcat服务器。In some embodiments, the management operation further includes an installation operation; the management module 12 in the above embodiment is further configured to upload the Tomcat-compliant application file package to the Tomcat server.
在一些实施例中,管理操作还包括升级和/或回滚操作;上述实施例中的管理模块12还设置为上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。In some embodiments, the management operation further includes an upgrade and/or a rollback operation; the management module 12 in the above embodiment is further configured to upload a user-developed upgrade package and/or a rollback package to the Tomcat server, and upgrade the corresponding application. And/or rollback.
对应的,本发明提供了一种应用管理系统,其包括Tomcat服务器、以及本发明提供的应用管理装置1,通过应用管理装置1根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。Correspondingly, the present invention provides an application management system, including a Tomcat server, and an application management apparatus 1 provided by the present invention. The application management apparatus 1 deploys on the Tomcat server based on the JAVA management extension protocol according to the management operation. Manage the application.
第二实施例:Second embodiment:
图2为本发明第二实施例提供的应用管理方法的流程图,由图2可知,在本实施例中,本发明提供的应用管理方法可以通过应用管理装置实现,包括以下步骤:FIG. 2 is a flowchart of an application management method according to a second embodiment of the present invention. As shown in FIG. 2, in the embodiment, the application management method provided by the present invention may be implemented by using an application management apparatus, including the following steps:
S201:接收基于JAVA管理扩展协议的管理操作;S201: Receive a management operation based on a JAVA management extension protocol;
S202:根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。 S202: Manage the corresponding application deployed on the Tomcat server according to the JAVA management extension protocol according to the management operation.
在一些实施例中,上述实施例中的管理操作包括关闭操作;对部署于Tomcat服务器上的对应应用进行管理包括:通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。In some embodiments, the management operation in the foregoing embodiment includes a shutdown operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object The managed application name is obtained by the device corresponding to the application registered on the device proxy layer, and the application method of the corresponding application is set to be closed by remotely calling the stop application method provided by the device through the remote procedure call protocol.
在一些实施例中,上述实施例中的管理操作包括开启操作;对部署于Tomcat服务器上的对应应用进行管理包括:通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。In some embodiments, the management operation in the foregoing embodiment includes an open operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object The managed application name is obtained by the device corresponding to the application registered on the device proxy layer, and the application application provided by the remote calling device is remotely invoked by the remote procedure call protocol, and the application service corresponding to the application is set to be available.
在一些实施例中,上述实施例中的管理操作包括加载操作;对部署于Tomcat服务器上的对应应用进行管理包括:通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。In some embodiments, the management operation in the foregoing embodiment includes a loading operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device proxy layer object The managed application name is obtained by the corresponding device registered on the device proxy layer, and the interface method provided by the remote calling device is remotely invoked by the remote procedure call protocol, the application file package is copied to the network application directory, and the stop application method provided by the device is invoked. , set the application service of the corresponding application to load.
在一些实施例中,上述实施例中的管理操作包括卸载操作;对部署于Tomcat服务器上的对应应用进行管理包括:通过后台JAVA获取Tomcat服务器的设备代理层对象,根据被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。In some embodiments, the management operation in the foregoing embodiment includes an uninstall operation; managing the corresponding application deployed on the Tomcat server includes: acquiring a device proxy layer object of the Tomcat server through the background JAVA, and obtaining, according to the managed application name, Corresponding to the device registered by the application on the device proxy layer, remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
在一些实施例中,上述实施例中的管理操作还包括安装操作;应用管理方法还包括:上传Tomcat规范的应用文件包到Tomcat服务器。In some embodiments, the management operation in the foregoing embodiment further includes an installation operation; the application management method further includes: uploading an application file package of the Tomcat specification to the Tomcat server.
在一些实施例中,上述实施例中的管理操作还包括升级和/或回滚操作;对部署于Tomcat服务器上的对应应用进行管理还包括:上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。In some embodiments, the management operations in the foregoing embodiments further include an upgrade and/or a rollback operation; managing the corresponding application deployed on the Tomcat server further includes: uploading a user-developed upgrade package and/or rolling back the package to The Tomcat server upgrades and/or rolls back the corresponding application.
现结合具体应用场景对本发明做进一步的诠释说明。The present invention will be further explained in conjunction with specific application scenarios.
第三实施例: Third embodiment:
本实施例的目的在于,用户可以自定义对Tomcat服务器的管理机制,通过在自定义的系统中,对远端Tomcat服务器上进行基于JMX(Java Management Extensions,JAVA管理扩展)协议的调用管理,实现对应用进行灵活管理。通过JMX技术,远程调用Tomcat提供的MBean(就是设备),对部署在Tomcat服务器上的应用进行单独操作,例如:部署,启动,停止,删除等操作。对于使用了JMX框架的服务器而言,任何需要被管理的对象都是一个设备,即MBean,都可以使用代理层,即MBeanServer来进行管理。应用部署到Tomcat服务器后,向Tomcat服务器的MbeanServer注册Mbean是Tomcat服务器完成的。The purpose of this embodiment is that the user can customize the management mechanism of the Tomcat server, and implement the call management based on the JMX (Java Management Extensions) protocol on the remote Tomcat server in the customized system. Flexible management of applications. Through JMX technology, remotely call the MBean (that is, the device) provided by Tomcat, and perform separate operations on the application deployed on the Tomcat server, such as: deploy, start, stop, delete, and so on. For servers using the JMX framework, any object that needs to be managed is a device, MBean, which can be managed using the proxy layer, the MBeanServer. After the application is deployed to the Tomcat server, registering the MBean with the MBeanServer of the Tomcat server is done by the Tomcat server.
本发明实施例与现有技术相比较,如果对某个Tomcat上某个应用升级,并不需要停止整个Tomcat,可以对需要操作的应用单独进行处理,将操作带来的影响和风险降到最低。例如:某用户Tomcat服务器上装了5个应用,分别对应不同业务,现需要对某业务升级时,若按照现有管理方法,需要停止所有业务,而应用程序如果较大,启停都需要消耗大量时间,而且也影响非升级的业务使用,使用本发明实施例的方法后,需要对某个应用升级,只需要在定义的管理平台上,停止对应应用,对该应用升级即可,将该应用“开启”即可,不需要在将整个Tomcat服务器停止和启动,节省了时间、成本,减少了操作风险。Compared with the prior art, the embodiment of the present invention can directly process the application that needs to be operated, and minimize the impact and risk of the operation, if the application is upgraded on a certain Tomcat and does not need to stop the entire Tomcat. . For example, a user has three applications on the Tomcat server, which correspond to different services. When upgrading a service, if you need to stop all services according to the existing management method, if the application is large, it needs to consume a large amount of time. Time, and also affects the non-upgraded service usage. After the method of the embodiment of the present invention is used, an application needs to be upgraded, and only the corresponding management platform is stopped, the corresponding application is stopped, and the application is upgraded. “Open” can save the time and cost and reduce the operational risk without stopping and starting the entire Tomcat server.
在本实施例内,本发明提供的应用管理系统的结构示意图如图3所示,其包括:JMX Manager(管理员)1,即本发明提供的应用管理装置1、Tomcat2、Web Browser(Web浏览器)3、SNMP(Simple Network Management Protocol,简单网络管理协议)Manager4;其中,Tomcat2包括多个设备MBean21、设备代理层MBeanServer22、以及对外接口(Adapter,将一个类的接口变换成客户端所期待的一种接口,从而使原本因接口不匹配而无法在一起工作的两个类能够在一起工作)RMI(Remote Method Invocation,远程方法调用)Adapter231、HTTP(HyperText Transfer Protocol,超文本传输协议)Adapter233以及SNMP Adapter234。在本实施例内,本发明提供的应用状态转换如图4所示,可以包括开启、关闭、加载、卸载、升级及回滚等操作。In this embodiment, the schematic diagram of the application management system provided by the present invention is shown in FIG. 3, which includes: JMX Manager (Administrator) 1, that is, the application management device 1, Tomcat2, and Web Browser provided by the present invention (Web browsing) 3) SNMP (Simple Network Management Protocol) Manager4; wherein Tomcat2 includes a plurality of device MBeans 21, a device proxy layer MBeanServer22, and an external interface (Adapter, which converts an interface of a class into what the client expects An interface that allows two classes that could not work together due to interface mismatch to work together. RMI (Remote Method Invocation) Adapter231, HTTP (HyperText Transfer Protocol) Adapter233 and SNMP Adapter234. In this embodiment, the application state transition provided by the present invention is as shown in FIG. 4, and may include operations such as opening, closing, loading, uninstalling, upgrading, and rolling back.
现在以linux操作系统为例,使用Tomcat服务器,设置为自动部署应用 模式。Now take the Linux operating system as an example, use the Tomcat server, set to automatically deploy the application. mode.
安装Tomcat应用,该Tomcat服务器上安装了本方法提供的安装管理应用,该应用提供了“加载”,“卸载”,“关闭”,“开启”操作。Install the Tomcat application. The Tomcat server has the installation management application provided by this method. The application provides "loading", "unloading", "closing", and "opening" operations.
其中“加载”对应于后台JAVA获取Tomcat服务器的MBeanServer对象,根据被管理的应用名,得到该应用在MBeanServer上注册的MBean,通过RPC(Remote Procedure Call Protocol,远程过程调用协议)远程调用MBean提供的接口方法,拷贝应用文件包至网络应用Webapp目录下,并调用Mbean中的停止应用方法,方法执行成功后,此时应用状态是加载,即系统文件在应用服务器中,但服务不可用,不可访问。The "loading" corresponds to the background JAVA to obtain the MBeanServer object of the Tomcat server. According to the managed application name, the MBean registered by the application on the MBeanServer is obtained, and the MBean is remotely called by the RPC (Remote Procedure Call Protocol). Interface method, copy the application file package to the web application Webapp directory, and call the stop application method in the MBean. After the method is successfully executed, the application state is loaded, that is, the system file is in the application server, but the service is unavailable and cannot be accessed. .
其中“卸载”对应于后台JAVA获取Tomcat服务器的MBeanServer对象,根据被管理的应用名,得到该应用在MBeanServer上注册的MBean,通过RPC远程调用MBean提供的卸载应用方法,停止应用服务,并删除应用文件。应用文件不保留。The "uninstall" corresponds to the background JAVA to obtain the MBeanServer object of the Tomcat server, according to the managed application name, obtain the MBean registered by the application on the MBeanServer, remotely invoke the uninstall application method provided by the MBean through the RPC, stop the application service, and delete the application. file. Application files are not retained.
其中“开启”对于非“卸载”状态的应用,点击“开启”后,对应于后台JAVA获取Tomcat服务器的MBeanServer对象,根据被管理的应用名,得到该应用在MBeanServer上注册的MBean,通过RPC远程调用MBean提供的开启应用方法,设置应用服务为可用,此时,可以通过浏览器正常访问应用。For the application that is not "uninstalled", click "Open", corresponding to the background JAVA to obtain the MBeanServer object of the Tomcat server, according to the managed application name, get the MBean registered by the application on the MBeanServer, and remotely pass the RPC. Call the open application method provided by the MBean to set the application service to be available. In this case, the application can be accessed normally through the browser.
其中“关闭”对于“开启”状态的应用,点击“关闭”后,对应于后台JAVA获取Tomcat服务器的MBeanServer对象,根据被管理的应用名,得到该应用在MBeanServer上注册的MBean,通过RPC远程调用MBean提供的停止应用方法,设置应用服务为关闭,此时,通过浏览器无法访问应用。应用文件保留在服务器上。The "closed" for the "on" state of the application, click "close", corresponding to the background JAVA to obtain the MBeanServer object of the Tomcat server, according to the managed application name, get the MBean registered by the application on the MBeanServer, remotely call through RPC The MBean provides a method to stop the application, and the application service is set to be closed. At this time, the application cannot be accessed through the browser. The application file remains on the server.
初次安装新的应用,用户按照Tomcat的规范,本地准备好需要部署的war包,点击“加载”,上传到Tomcat服务器,此时应用状态默认是关闭的。进入Tomcat服务器的Webapp目录下,可以看到该应用war包已经自动解压。并生成一个新的目录,目录名为文件包的文件名。此时,可以进行“卸载”,“开启”操作 The first time you install a new application, the user prepares the war package that needs to be deployed according to the Tomcat specification. Click “Load” to upload it to the Tomcat server. At this time, the application status is disabled by default. Go to the Webapp directory of the Tomcat server and you can see that the application war package has been automatically decompressed. And generate a new directory, the directory name is the file name of the package. At this point, you can perform the "uninstall", "open" operation
应用加载完成后,点击“开启”,此时应用处于服务可用状态,可以通过浏览器正常该应用。此时可以进行“关闭”,“卸载”操作。After the application is loaded, click “Open”. At this time, the application is in the service available state, and the application can be normal through the browser. At this point, you can perform the "close" and "uninstall" operations.
应用开启后,点击“关闭”,此时应用处于服务关闭状态,无法通过浏览器访问该应用。查看Tomcat下Webapp文件,应用文件和目录依然存在,说明只是该服务被停止了。此时可以进行“开启”,“卸载”操作。After the app is opened, click "Close", the app is in the service off state, and the app cannot be accessed through the browser. Looking at the Webapp file under Tomcat, the application files and directories still exist, indicating that the service was stopped. At this point, you can perform the "open" and "uninstall" operations.
点击“卸载”,此时应用已经被卸载,无法通过浏览器访问该应用,并且查看Tomcat下Webapp目录下,应用相关的文件也被删除。“卸载”是不可逆的。“卸载”完,无法进行任何操作。Click "Uninstall", the application has been uninstalled, the application cannot be accessed through the browser, and the application related files are also deleted under the Webapp directory under Tomcat. "Unloading" is irreversible. After the "uninstallation" is completed, no operations can be performed.
结合“关闭”,“开启”,本实施例可扩展出了“升级”,“回滚”接口,可以给用户定义升级包规范,用户通过本系统提供的方法,上传用户自己开发的升级或者回滚包,对应用进行升级或者回滚。In combination with "off" and "on", this embodiment can expand the "upgrade" and "rollback" interfaces, and can define the upgrade package specification for the user. The user uploads the upgrade or user back developed by the user through the method provided by the system. Roll the package to upgrade or roll back the application.
综上可知,通过本发明的实施,至少存在以下有益效果:In summary, through the implementation of the present invention, at least the following beneficial effects exist:
本发明实施例提供了一种应用管理方法,根据管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理,由于在基于JAVA管理扩展协议的框架内,Tomcat服务器上的应用都是作为一个设备单独存在的,在此基础上,如果对某个Tomcat上某个应用升级,并不需要停止整个Tomcat,可以对需要操作的应用单独进行处理,将操作带来的影响和风险降到最低,实现了应用的单独管理,从而降低了应用管理成本。The embodiment of the present invention provides an application management method, and manages a corresponding application deployed on a Tomcat server according to a JAVA management extension protocol according to a management operation, and an application on a Tomcat server in a framework based on the JAVA management extension protocol. All of them exist as a single device. On this basis, if you upgrade an application on a Tomcat and do not need to stop the entire Tomcat, you can separately process the application that needs to be operated, and the impact and risk of the operation. Minimized, enabling separate management of applications, reducing application management costs.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
以上仅是本发明的具体实施方式而已,并非对本发明做任何形式上的限制,凡是依据本发明的技术实质对以上实施方式所做的任意简单修改、等同变化、结合或修饰,均仍属于本发明技术方案的保护范围。The above is only a specific embodiment of the present invention, and is not intended to limit the present invention in any way. Any simple modification, equivalent change, combination or modification of the above embodiments in accordance with the technical spirit of the present invention is still in the present invention. The scope of protection of the technical solution of the invention.
工业实用性Industrial applicability
上述技术方案实现了应用的单独管理,从而降低了应用管理成本。 The above technical solution realizes separate management of applications, thereby reducing application management costs.

Claims (15)

  1. 一种应用管理方法,包括:An application management method, including:
    接收基于JAVA管理扩展协议的管理操作;Receiving management operations based on the JAVA management extension protocol;
    根据所述管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。According to the management operation, the corresponding application deployed on the Tomcat server is managed based on the JAVA management extension protocol.
  2. 如权利要求1所述的应用管理方法,其中,所述管理操作包括关闭操作;所述对部署于Tomcat服务器上的对应应用进行管理包括:The application management method according to claim 1, wherein the management operation comprises a shutdown operation; and the managing the corresponding application deployed on the Tomcat server comprises:
    通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。Obtain the device proxy layer object of the Tomcat server through the background JAVA, obtain the device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object, and remotely invoke the stop provided by the device through the remote procedure call protocol. The application method is to set the application service of the corresponding application to be closed.
  3. 如权利要求1所述的应用管理方法,其中,所述管理操作包括开启操作;所述对部署于Tomcat服务器上的对应应用进行管理包括:The application management method according to claim 1, wherein the management operation comprises an opening operation; and the managing the corresponding application deployed on the Tomcat server comprises:
    通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。Obtain the device proxy layer object of the Tomcat server through the background JAVA, obtain the device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object, and remotely invoke the device to provide the opening through the remote procedure call protocol. Application method, setting the application service of the corresponding application to be available.
  4. 如权利要求1所述的应用管理方法,其中,所述管理操作包括加载操作;所述对部署于Tomcat服务器上的对应应用进行管理包括:The application management method according to claim 1, wherein the management operation comprises a loading operation; and the managing the corresponding application deployed on the Tomcat server comprises:
    通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。Obtain the device proxy layer object of the Tomcat server through the background JAVA, obtain the device registered by the corresponding application on the device proxy layer according to the managed application name in the obtained device proxy layer object, and remotely invoke the interface provided by the device through the remote procedure call protocol. Method, copy the application file package to the network application directory, and call the stop application method provided by the device, and set the application service of the corresponding application to be loaded.
  5. 如权利要求1所述的应用管理方法,其中,所述管理操作包括卸载操作;所述对部署于Tomcat服务器上的对应应用进行管理包括:The application management method according to claim 1, wherein the management operation comprises an uninstall operation; and the managing the corresponding application deployed on the Tomcat server comprises:
    通过后台JAVA获取Tomcat服务器的设备代理层对象,根据获得的设备 代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。Obtain the device proxy layer object of the Tomcat server through the background JAVA, according to the obtained device The managed application name in the proxy layer object is obtained by the corresponding application registered on the device proxy layer, and the remote application call protocol remotely invokes the uninstall application method provided by the device, stops the application service, and deletes the application file.
  6. 如权利要求1至5任一项所述的应用管理方法,所述管理操作还包括安装操作;所述应用管理方法还包括:The application management method according to any one of claims 1 to 5, wherein the management operation further comprises an installation operation; the application management method further comprises:
    上传Tomcat规范的应用文件包到Tomcat服务器。Upload the Tomcat-specific application package to the Tomcat server.
  7. 如权利要求6所述的应用管理方法,所述管理操作还包括升级和/或回滚操作;所述对部署于Tomcat服务器上的对应应用进行管理还包括:The application management method according to claim 6, wherein the management operation further comprises an upgrade and/or a rollback operation; and the managing the corresponding application deployed on the Tomcat server further comprises:
    上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。Upload the user-developed upgrade package and/or rollback package to the Tomcat server to upgrade and/or roll back the corresponding application.
  8. 一种应用管理装置,包括:An application management device comprising:
    接收模块,设置为接收基于JAVA管理扩展协议的管理操作;a receiving module configured to receive a management operation based on a JAVA management extension protocol;
    管理模块,设置为根据所述管理操作,基于JAVA管理扩展协议,对部署于Tomcat服务器上的对应应用进行管理。The management module is configured to manage the corresponding application deployed on the Tomcat server according to the JAVA management extension protocol according to the management operation.
  9. 如权利要求8所述的应用管理装置,其中,所述管理操作包括关闭操作;所述管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的停止应用方法,设置对应应用的应用服务为关闭。The application management apparatus according to claim 8, wherein said management operation comprises a shutdown operation; said management module is configured to acquire a device proxy layer object of the Tomcat server, according to the managed application in the obtained device proxy layer object Name, get the device registered on the device proxy layer corresponding to the application, remotely invoke the stop application method provided by the device through the remote procedure call protocol, and set the application service of the corresponding application to be closed.
  10. 如权利要求8所述的应用管理装置,其中,所述管理操作包括开启操作;所述管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的开启应用方法,设置对应应用的应用服务为可用。The application management apparatus according to claim 8, wherein said management operation comprises an open operation; said management module is configured to acquire a device proxy layer object of the Tomcat server, according to the managed application in the obtained device proxy layer object Name, obtain the corresponding device registered on the device proxy layer, remotely invoke the open application method provided by the device through the remote procedure call protocol, and set the application service of the corresponding application to be available.
  11. 如权利要求8所述的应用管理装置,其中,所述管理操作包括加载操作;所述管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的接口方法,拷贝应用 文件包至网络应用目录下,并调用设备提供的停止应用方法,设置对应应用的应用服务为加载。The application management apparatus according to claim 8, wherein said management operation comprises a load operation; said management module is configured to acquire a device proxy layer object of the Tomcat server, according to the managed application in the obtained device proxy layer object Name, get the device registered on the device proxy layer corresponding to the application, remotely invoke the interface method provided by the device through the remote procedure call protocol, copy the application The file package is sent to the network application directory, and the stop application method provided by the device is called, and the application service of the corresponding application is set to be loaded.
  12. 如权利要求8所述的应用管理装置,其中,所述管理操作包括卸载操作;所述管理模块是设置为获取Tomcat服务器的设备代理层对象,根据获得的设备代理层对象中的被管理的应用名,得到对应应用在设备代理层上注册的设备,通过远程过程调用协议远程调用设备提供的卸载应用方法,停止应用服务,并删除应用文件。The application management apparatus according to claim 8, wherein said management operation comprises an uninstall operation; said management module is configured to acquire a device proxy layer object of the Tomcat server, according to the managed application in the obtained device proxy layer object Name, get the device corresponding to the application registered on the device proxy layer, remotely invoke the uninstall application method provided by the device through the remote procedure call protocol, stop the application service, and delete the application file.
  13. 如权利要求8至12任一项所述的应用管理装置,所述管理操作还包括安装操作;所述管理模块还设置为上传Tomcat规范的应用文件包到Tomcat服务器。The application management apparatus according to any one of claims 8 to 12, wherein the management operation further comprises an installation operation; the management module is further configured to upload an application file package of the Tomcat specification to the Tomcat server.
  14. 如权利要求13所述的应用管理装置,所述管理操作还包括升级和/或回滚操作;所述管理模块还设置为上传用户开发的升级包和/或回滚包至Tomcat服务器,对对应应用进行升级和/或回滚。The application management apparatus according to claim 13, wherein said management operation further comprises an upgrade and/or a rollback operation; said management module is further configured to upload an upgrade package developed by the user and/or a rollback package to the Tomcat server, corresponding to The application is upgraded and/or rolled back.
  15. 一种应用管理系统,包括Tomcat服务器、以及如权利要求8至14任一项所述的应用管理装置,通过所述应用管理装置根据管理操作,基于JAVA管理扩展协议,对部署于所述Tomcat服务器上的对应应用进行管理。 An application management system, comprising a Tomcat server, and an application management device according to any one of claims 8 to 14, wherein the application management device deploys to the Tomcat server based on a JAVA management extension protocol according to a management operation. The corresponding application on the management.
PCT/CN2016/084952 2015-09-30 2016-06-06 Application management method, device and system WO2017054501A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510638919.8A CN106559245A (en) 2015-09-30 2015-09-30 A kind of application management method, apparatus and system
CN201510638919.8 2015-09-30

Publications (1)

Publication Number Publication Date
WO2017054501A1 true WO2017054501A1 (en) 2017-04-06

Family

ID=58417326

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084952 WO2017054501A1 (en) 2015-09-30 2016-06-06 Application management method, device and system

Country Status (2)

Country Link
CN (1) CN106559245A (en)
WO (1) WO2017054501A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1684177A1 (en) * 2005-01-25 2006-07-26 France Telecom Method and system for managing in a JMX environment with a management application and software systems to be managed
US20070011618A1 (en) * 2005-07-05 2007-01-11 Oracle International Corporation GUI-supplying management beans
CN101847116A (en) * 2010-05-05 2010-09-29 中兴通讯股份有限公司 Monitoring system based on J2EE framework and method
CN103605575A (en) * 2013-11-18 2014-02-26 深圳市远行科技有限公司 Cloud Foundry platform application scheduling system and Cloud Foundry platform application scheduling method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1684177A1 (en) * 2005-01-25 2006-07-26 France Telecom Method and system for managing in a JMX environment with a management application and software systems to be managed
US20070011618A1 (en) * 2005-07-05 2007-01-11 Oracle International Corporation GUI-supplying management beans
CN101847116A (en) * 2010-05-05 2010-09-29 中兴通讯股份有限公司 Monitoring system based on J2EE framework and method
CN103605575A (en) * 2013-11-18 2014-02-26 深圳市远行科技有限公司 Cloud Foundry platform application scheduling system and Cloud Foundry platform application scheduling method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YAN, XUESONG;: "Research and Realization of Monitor System Based on JMX", ELECTRONIC TECHNOLOGY & INFORMATION SCIENCE , CHINA MASTER'S THESES FULL-TEXT DATABASE, 15 May 2008 (2008-05-15), pages 7 *

Also Published As

Publication number Publication date
CN106559245A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
US20210349706A1 (en) Release lifecycle management system for multi-node application
US10938954B2 (en) Method and system for mobile applications update in the cloud
JP5681465B2 (en) Information processing system, information processing apparatus, preparation method, program, and recording medium
US10003672B2 (en) Apparatus, systems and methods for deployment of interactive desktop applications on distributed infrastructures
EP2786246B1 (en) Deployment and updating of applications and drivers on a client device using and extensible markup language (xml) configuration file
EP2786248B1 (en) Automatic updating of an application or a driver on a client device using a deployment configuration file
US8418139B2 (en) System and method for updating initialization parameters for application software from within a software development environment
US9253265B2 (en) Hot pluggable extensions for access management system
US9830135B2 (en) Declarative and pluggable business logic for systems management
US8645672B2 (en) Configuring a computer system for a software package installation
US10656971B2 (en) Agile framework for vertical application development and delivery
US20150220308A1 (en) Model-based development
US9075677B2 (en) Methods and systems for automating deployment of applications in a database environment
US10761827B2 (en) WIN32 software distribution architecture
CN105278999A (en) Safe and efficient method for deploying virtual machine software
US9626251B2 (en) Undo configuration transactional compensation
US20100185582A1 (en) Web Deployment Functions and Interfaces
US20190012161A1 (en) Distributed and self-deleting apparatus for fast software deployment and upgrade in a network
US10545704B2 (en) Image forming apparatus and control method to update an application in an image forming apparatus
WO2017054501A1 (en) Application management method, device and system
US9665364B2 (en) Dual-bank telecommunication apparatus and method of upgrading firmware in dual-bank telecommunication apparatus
US20140366010A1 (en) Enabling parallel websphere runtime on different computer
Rhodes et al. An Introduction to Windows Installation Methodologies and Tools
CN117931142A (en) Information processing method, device, equipment and medium
US20140189076A1 (en) Configuration of computer systems via simple object access protocol connections

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16850126

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16850126

Country of ref document: EP

Kind code of ref document: A1