CN101221498A - System and method for managing service modules - Google Patents

System and method for managing service modules Download PDF

Info

Publication number
CN101221498A
CN101221498A CNA2007100263083A CN200710026308A CN101221498A CN 101221498 A CN101221498 A CN 101221498A CN A2007100263083 A CNA2007100263083 A CN A2007100263083A CN 200710026308 A CN200710026308 A CN 200710026308A CN 101221498 A CN101221498 A CN 101221498A
Authority
CN
China
Prior art keywords
business module
module
management
server
administrative unit
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CNA2007100263083A
Other languages
Chinese (zh)
Other versions
CN101221498B (en
Inventor
刘相斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007100263083A priority Critical patent/CN101221498B/en
Publication of CN101221498A publication Critical patent/CN101221498A/en
Application granted granted Critical
Publication of CN101221498B publication Critical patent/CN101221498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention relates to a management system for service modules, comprising a plug-in manager. The plug-in manager concretely comprises a container server and a Java management extension server, wherein, the container server comprises a plurality of Java service modules; the container server is used to decouple Java components and manage the lifecycle and dependence of the Java service modules; the Java management extension server is used to provide a plurality of management interfaces; the Java service modules are managed through the management interfaces. The present invention also discloses a management method for service modules. The implementation of the present invention ensures more convenient management, invocation and deployment to the service modules, and reduces development complexity.

Description

A kind of system and method that business module is managed
Technical field
The present invention relates to the Java technology of software development, more particularly, relate to a kind of based on the system and method that under Java administration extensions (Java Management Extension is called for short JMX) and control counter-rotating (Inversinon ofControl the is called for short IoC) container business module is managed.
Background technology
In the Java technology, assembly (Bean) is a reusable Java business module based on Java software assembly model (JavaBeans).In assembly, " method " is a code module, generates the behavior of an object instance, and with procedural programming language in function class seemingly.In order to define a method, the supplier of assembly must state this method, realize its main body then.And the attribute of assembly can be obtained and be provided with to client by the method for invocation component, and finish the various operations to assembly.
In the definition of Java administration extensions, Management Unit (MBean, MBean are writing a Chinese character in simplified form of Managed Bean), it provides a series of methods that assembly is managed, and Management Unit server (MBeanServer) is in charge of a series of Management Unit.
And the control inversion container is to be used for assembly is carried out decoupling zero, the life cycle of management Java business module, dependence etc., thus make the application code of the configuration of application program and dependence standard and reality separate.Current more well-known control inversion container has: micro core container (Pico Container), Avalon container, Spring container, JBoss container, HiveMind container, enterprise-level Java assembly (EJB) container etc.
Plug-in type framework (Plug-in Architecture) makes software module to assemble according to concrete demand more easily, thereby makes software development modularization more, modularization as a kind of framework that can plug.
In the prior art, Eclipse (Eclipse is a kind of Java developing instrument) generally adopts open service gateway (Open Service Gateway Initiative is called for short OSGi) as its plug-in type framework.A computing environment standard, facing assembly that the open service gateway standard has been network service definition, be divided into submodule (Bundle) and service (Service), it mainly is life cycle by the module management administration module, service then is the external service object of this module, separates thereby realize will managing with static structure.
But, because the definition of open service gateway administrative mechanism is not enough, shortage is as the perfect administrative mechanism of Java administration extensions, the definition of intermodule message passing mechanism is not enough, only defined the monitoring mechanism of framework, module, service, but can't notify other modules when the specifying information of service changes.In addition, open service gateway is based on embedded system, has performance issue if move to the enterprise-level application meeting.
Another scheme of the prior art is based on the plug-in type framework of Java administration extensions and control counter-rotating, mainly be utilize the function of existing control counter-rotating module dynamic load and utilize the Java administration extensions that perfect administrative mechanism is provided the management that realizes module, call, deployment etc.Method of for example every definition, Java administration extensions all must state this method, and the method for invocation component obtains and be provided with the attribute of assembly, and finish the various operations to assembly.
But because Java administration extensions technology is too numerous and jumbled, grasping Java administration extensions technology needs long learning time for general developer.And the framework kind of control inversion container is more and incompatible each other, is the framework of increasing income mostly, the sustainability existing problems of stability and service, thus make the plug-in type framework relevant with the framework of control inversion container, increased the complexity of transplanting.
Summary of the invention
Embodiments of the invention technical matters to be solved is, above-mentioned open service gateway administrative mechanism definition at prior art is not enough, and Java administration extensions technical sophistication and defectives such as the framework stability of controlling inversion container, sustainability existing problems, a kind of system and method that business module is managed is provided.
The technical scheme that its technical matters that solves embodiments of the invention adopts is: a kind of method that business module is managed, described method comprises the following steps:
A, Java administration extensions server receive services request;
B, described Java administration extensions server send to the container server with described services request;
C, described container server generate a corresponding business module according to described services request;
D, described container server manage described business module.
Embodiments of the invention also disclose a kind of system that business module is managed simultaneously, comprise plugin manager, and described plug-in management implement body comprises:
Java administration extensions server is used to receive services request, and sends described services request;
The container server is used to receive described services request, generates the corresponding business module according to described services request, and described business module is managed.
Implement embodiments of the invention, can reduce the complexity of software development plug-in unit, reduced the complicacy of Java administration extensions technology, and encapsulated control inversion container mechanism in the inside of this framework, make module not rely on concrete control inversion container, thereby having reduced the risk that the control inversion container software of increasing income uses, having made to the management of business module, call, dispose convenient, having reduced complexity of developing.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the framed structure synoptic diagram that the present invention manages business module;
Fig. 2 is the process flow diagram that the present invention manages business module;
But the synoptic diagram of the life cycle of the administrative unit that Fig. 3 is the present invention to be managed the Java assembly;
Fig. 4 is the sequential chart of business module state variation of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in detail below by embodiment and referring to accompanying drawing.
Fig. 1 is the framed structure synoptic diagram of preferred embodiment that business module is managed, as shown in the figure.A kind of system that business module is managed, comprise plugin manager (UniBeanManager), described plugin manager comprises container server (as IoC Server) and Java administration extensions server (JMXServer), that is to say that plugin manager itself has encapsulated container server and Java administration extensions server, the main frame of system is made up of container server and Java administration extensions server.Java administration extensions server is used to receive services request, and sends described services request; The container server is used to receive described services request, generates the corresponding business module according to described services request, and described business module is managed.
Wherein, the container server, it comprises a plurality of Java business modules, is used for the Java assembly is carried out decoupling zero the life cycle and the dependence of management Java business module.But each business module specifically has and comprises one or more administrative units (UniBean), but but each administrative unit comprises an administrative unit interface module that is used to manage described business module life cycle.
But the administrative unit interface module specifically comprises: start module, be used to provide the method that described business module is started; Stopping modular is used to provide the method that described business module is stopped; Installed module is used to provide the method that described business module is installed; Unload module is used to provide the method that described business module is unloaded; Hang up module, be used to provide the method that described business module is hung up.
Wherein, Java administration extensions server, it is used to provide a plurality of management interfaces, by described management interface described Java business module is managed.Java administration extensions server specifically comprises a plurality of Management Units (MBean) again, and each Management Unit provides the method that the Java assembly is managed, but Management Unit is finished management to described business module by calling the administrative unit interface module.
Below will be elaborated by the course of work of the method that business module is managed of the present invention to above-mentioned each module.
A kind of method that business module is managed, as shown in Figure 2, described method comprises the following steps:
Step S1:Java administration extensions server receives services request.Because the Java administration extensions provides the standard set management interface, describedly can finish management to the Java business module by the Management Unit in the Java administration extensions.
Management Unit in the step S2:Java administration extensions server sends to the container server by management interface with this services request.The container server includes a plurality of business modules, and each business module all is responsible for generating and safeguarding by the container server.
Step S3: the container server generates a corresponding business module according to this services request, but each business module is loaded with a plurality of administrative units.But but the container server can generate the example of administrative unit according to the configuration file of the category information that has write down administrative unit, class name by the control counter-rotating.
Step S4: but but the management interface module in the administrative unit is carried out life cycle management (comprising dynamic load to business module, modification, deletion etc.) to business module.
Because but but administrative unit comprises a series of management interface modules, for example start module, stopping modular, installed module, Unload module, hang-up module, hang up module etc., but so by the management interface module, make to the management of business module, call, dispose convenient.
Wherein, in the embodiments of the invention, but as follows to the life cycle management interface method of administrative unit interface module definition:
UniBeanLifeCycle // life cycle management interface
public?interface?UniBeanLifeCycle
{
Public void start () throws Exception; The method that // definition business module starts
Public void stop () throws Exception; The method that // definition business module stops
Public void install () throws Exception; The method that // definition business module is installed
Public void uninstall () throws Exception; The method of // definition business module unloading
Public void dofail (); The method that // definition business module is hung up
}
But the synoptic diagram of the life cycle of the administrative unit that Fig. 3 manages the Java assembly for the present invention, as shown in the figure.But an administrative unit is mounted by installed module, after the successful installation, starts by starting module, stops by stopping modular, deletes by Unload module at last.If there are abnormal conditions to take place in the said process, then can call the hang-up module and carry out corresponding abnormality processing.
Below describe the course of work that starts business module in detail with specific embodiment.
In the time of system start-up, at first start the container server, but by the configuration file of container server according to the category information that has write down administrative unit, class name, but by controlling the example that counter-rotating generates administrative unit.Because but plugin manager can give each administrative unit unique sign, so but the example when administrative unit can have a plurality of operation.At this moment, but each administrative unit is in the installation state, promptly loads completion status.
Then, the function of utilizing Java administration extensions server to provide, but finish the start-up operation of each administrative unit according to above-mentioned configuration file.If but the startup of administrative unit is finished, then enter running status, if but each administrative unit in the business module successfully start, represent that so business module has also just successfully started.After the business module startup that needs start was finished, total system started and finishes.But,, carry out the corresponding error processing but then need call the defined hang-up method of administrative unit if occur unusually in the said process.
But, if the business module that certain business module relied in above-mentioned is not installed, can adopt the mode of dynamic proxy (Dynamic Proxy) to finish calling between business module so, even the business module that certain business module relied on is not installed like this, also only influence this business module dependant part, other parts are unaffected.
Dynamic proxy is a characteristic of Java language, the ultimate principle of dynamic proxy technology is by all public methods of proxy class by scanning, and generate a class automatically, then these public methods of override in the class of this generation from being inherited by proxy class.
The sequential chart of Fig. 4 business module state variation that to be the present invention manage the Java assembly, as shown in the figure:
Step 1: when needs are installed business module.
Step 2: but the business module manager at first calls the example that produces a corresponding administrative unit in the container server.
The Management Unit whois lookup of step 3:Java administration extensions is to corresponding Management Unit.
Step 4: but the installation method that calls administrative unit is finished the installation of business module.
Step 5: when needs start business module.
The Management Unit whois lookup of step 6:Java administration extensions is to corresponding Management Unit.
Step 7: but the startup method of calling administrative unit is finished the startup of business module.
Step 8: when needs stop business module,
The Management Unit whois lookup of step 9:Java administration extensions is to corresponding Management Unit.
Step 10: but the method for shutting down that calls administrative unit is finished stopping of business module.
Step 11: when needs unloading business module.
The Management Unit whois lookup of step 12:Java administration extensions is to corresponding Management Unit.
Step 13: but the discharging method that calls administrative unit is finished the unloading of business module.
Step 14: but notify the container server to carry out corresponding administrative unit example cancellation work simultaneously.
In sum,, make the Java administration extensions transparent, reduced the complexity of software development the developer of business module because the embodiment of the invention has reduced the complicacy of Java administration extensions technology; And, owing to encapsulated container mechanism, make business module not rely on concrete container (as the IoC container), thereby reduced the risk that open source software uses in this framework inside.
Therefore, the present invention has made full use of the function of dynamic load of the business module of perfect administrative mechanism that the Java administration extensions provides and container (as the IoC container), make to the management of business module, call, dispose convenient.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included in of the present invention comprising within the scope.

Claims (14)

1. the method that business module is managed is characterized in that, described method comprises the following steps:
A, Java administration extensions server receive services request;
B, described Java administration extensions server send to the container server with described services request;
C, described container server generate a corresponding business module according to described services request;
D, described container server manage described business module.
2. the method that business module is managed according to claim 1 is characterized in that, described step b is specially:
Described its Management Unit of Java administration extensions server calls sends to the container server by management interface with described services request.
3. the method that business module is managed according to claim 1 is characterized in that, described steps d is specially:
But but the administrative unit in the business module of described container server is carried out life cycle management by its management interface module to described business module.
4. the method that business module is managed according to claim 3, it is characterized in that, but but the administrative unit in the business module of described container server by its management interface module the step that described business module carries out life cycle management is specifically comprised:
The step of d1, the described business module of startup;
D2, stop the step of described business module;
D3, the step that described business module is installed;
The step of d4, the described business module of unloading;
The step of d5, the described business module of hang-up.
5. the method that business module is managed according to claim 4 is characterized in that, described steps d 1 specifically comprises:
The Management Unit whois lookup of d11, Java administration extensions is to corresponding Management Unit;
But d12, the startup module of calling administrative unit are finished the startup of module.
6. the method that business module is managed according to claim 4 is characterized in that, described steps d 2 specifically comprises:
The Management Unit whois lookup of d21, Java administration extensions is to corresponding Management Unit;
But d22, the stopping modular that calls administrative unit are finished stopping of module.
7. the method that business module is managed according to claim 4 is characterized in that, described steps d 3 specifically comprises:
But d31, call the example of a corresponding administrative unit that produces in the container server;
The Management Unit whois lookup of d32, Java administration extensions is to corresponding Management Unit;
But d33, the installed module that calls administrative unit are finished the installation of business module.
8. the method that business module is managed according to claim 4 is characterized in that, described steps d 4 specifically comprises:
The Management Unit whois lookup of d41, Java administration extensions is to corresponding Management Unit;
But d42, the discharging method that calls administrative unit are finished the unloading of module, but and notify the container server to carry out corresponding administrative unit example cancellation work simultaneously.
9. the method that business module is managed according to claim 4 is characterized in that, when the management to described business module occurs when unusual, and execution in step d5, described steps d 5 specifically comprises:
But but call the hang-up module of the management interface module of described administrative unit, described business module is carried out corresponding error handle.
10. the method that business module is managed according to claim 1 is characterized in that, described method further comprises step:
Also do not finish corresponding operation when another business module that business module relied on, then adopt the mode of dynamic proxy to finish calling between the described business module.
11. the system that business module is managed comprises plugin manager, it is characterized in that, described plug-in management implement body comprises:
Java administration extensions server is used to receive services request, and sends described services request;
The container server is used to receive described services request, generates the corresponding business module according to described services request, and described business module is managed.
12. the system that business module is managed according to claim 11 is characterized in that, but described each business module specifically comprises one or more administrative units;
But but described each administrative unit comprises an administrative unit interface module that is used to manage described business module life cycle.
13. the system that business module is managed according to claim 12 is characterized in that, described Java administration extensions server specifically comprises a plurality of Management Units;
Described each Management Unit is finished management to described business module but be used for calling described administrative unit interface module by its management interface.
14., it is characterized in that, but described administrative unit interface module specifically comprises according to claim 12 or the 13 described systems that business module is managed:
Start module, be used to start described business module;
Stopping modular is used to stop described business module;
Installed module is used to install described business module;
Unload module is used to unload described business module;
Hang up module, be used for management at described business module and occur hanging up described business module when unusual.
CN2007100263083A 2007-01-08 2007-01-08 System and method for managing service modules Active CN101221498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100263083A CN101221498B (en) 2007-01-08 2007-01-08 System and method for managing service modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100263083A CN101221498B (en) 2007-01-08 2007-01-08 System and method for managing service modules

Publications (2)

Publication Number Publication Date
CN101221498A true CN101221498A (en) 2008-07-16
CN101221498B CN101221498B (en) 2011-04-13

Family

ID=39631360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100263083A Active CN101221498B (en) 2007-01-08 2007-01-08 System and method for managing service modules

Country Status (1)

Country Link
CN (1) CN101221498B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325180A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Component management method and system
CN102411506A (en) * 2011-07-07 2012-04-11 杭州典能科技有限公司 Java-system business-unit plug-in type managing system and dynamic business-function changing method
CN102520932A (en) * 2011-11-25 2012-06-27 福州博远无线网络科技有限公司 System used for managing service module on movement equipment
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
CN106339222A (en) * 2016-08-23 2017-01-18 联动优势电子商务有限公司 Service implementing method and device
CN107239350A (en) * 2016-03-28 2017-10-10 中国电信股份有限公司 Method and system for calling gateway capacity
CN108363614A (en) * 2018-03-07 2018-08-03 北京恒华伟业科技股份有限公司 A kind of business module management method, device and the server of application

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411506A (en) * 2011-07-07 2012-04-11 杭州典能科技有限公司 Java-system business-unit plug-in type managing system and dynamic business-function changing method
CN102411506B (en) * 2011-07-07 2014-03-12 杭州典能科技有限公司 Java-system business-unit plug-in type managing system and dynamic business-function changing method
CN102325180A (en) * 2011-09-07 2012-01-18 山东中创软件工程股份有限公司 Component management method and system
CN102325180B (en) * 2011-09-07 2015-01-07 山东中创软件工程股份有限公司 Component management method and system
CN102520932A (en) * 2011-11-25 2012-06-27 福州博远无线网络科技有限公司 System used for managing service module on movement equipment
CN102520932B (en) * 2011-11-25 2015-08-26 福州博远无线网络科技有限公司 To the system that the business module on mobile device manages
CN105893013A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Engineering construction system and construction method thereof
CN107239350A (en) * 2016-03-28 2017-10-10 中国电信股份有限公司 Method and system for calling gateway capacity
CN107239350B (en) * 2016-03-28 2020-07-07 中国电信股份有限公司 Method and system for calling gateway capability
CN106339222A (en) * 2016-08-23 2017-01-18 联动优势电子商务有限公司 Service implementing method and device
CN108363614A (en) * 2018-03-07 2018-08-03 北京恒华伟业科技股份有限公司 A kind of business module management method, device and the server of application
CN108363614B (en) * 2018-03-07 2022-04-12 北京恒华伟业科技股份有限公司 Application service module management method and device and server

Also Published As

Publication number Publication date
CN101221498B (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN101221498B (en) System and method for managing service modules
CN101192937B (en) A hot deployable method and its system
US8910138B2 (en) Hot pluggable extensions for access management system
Canal et al. Software adaptation.
CN100489778C (en) Method for implementing dynamic update of Java program
US20060277537A1 (en) Deployment of containers and container extensions in a modular code runtime platform through a runtime platform extension point
US7836448B1 (en) System and methods for task management
CN1407441A (en) System and method for automatic management computer service and programmable device
CN112230987B (en) Distributed modular plug-in frame realization system and method
CN111262908A (en) Task construction method and system based on jenkins
US8924947B2 (en) Direct deployment of static content
CN103049268A (en) Naplet based application development and management system
CN106201527A (en) A kind of Application Container framework of logic-based subregion
US20090249293A1 (en) Defining Workflow Processing Using a Static Class-Level Network in Object-Oriented Classes
CN115357369B (en) CRD application integration calling method and device in k8s container cloud platform
CN117075930B (en) Computing framework management system
US20020147971A1 (en) Object-oriented class loading system and method
CN103019809B (en) Business processing device and method, and business processing control device
EP2097848A2 (en) Method, system and computer program for monitoring components in a service framework
CN111339055B (en) Big data cluster capacity expansion method and device
CN111813836A (en) Method for improving Ethereum block chain system expansibility
US20140173634A1 (en) Method and integration component for integrating osgi environments into a service-oriented architecture
WO2021129853A1 (en) Mobile service upgrade method and apparatus, and terminal
US20090293064A1 (en) Synchronizing shared resources in an order processing environment using a synchronization component
CN104104691B (en) A kind of application server startup method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant