CN103677854A - Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment - Google Patents

Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment Download PDF

Info

Publication number
CN103677854A
CN103677854A CN201310752317.6A CN201310752317A CN103677854A CN 103677854 A CN103677854 A CN 103677854A CN 201310752317 A CN201310752317 A CN 201310752317A CN 103677854 A CN103677854 A CN 103677854A
Authority
CN
China
Prior art keywords
osgi
module
fragment
main works
web
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.)
Pending
Application number
CN201310752317.6A
Other languages
Chinese (zh)
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.)
SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Original Assignee
SHUGUANG CLOUD COMPUTING TECHNOLOGY 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 SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd filed Critical SHUGUANG CLOUD COMPUTING TECHNOLOGY Co Ltd
Priority to CN201310752317.6A priority Critical patent/CN103677854A/en
Publication of CN103677854A publication Critical patent/CN103677854A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a design method and a design system of an OSGI (Open Service Gateway Initiative)-WEB framework applicable to a cloud computing environment. The method comprises the following steps: defining a main engineering module; defining multiple fragments corresponding to different resource modules according to develop demands, wherein the multiple fragments are assigned to the main engineering module; putting the main engineering module and the multiple fragments into an operating environment. According to the method and the system, an OSGI fragment technology and a WEB fragment technology are combined, so that the efficiency and convenience of developing the WEB application by use of an OSGI platform are utilized.

Description

Be applicable to method for designing and the system of the OSGI-WEB framework under cloud computing environment
Technical field
The present invention relates to cloud computing field, more specifically, relate to method for designing and the system of the OSGI-WEB framework being applicable under cloud computing environment.
Background technology
OSGI(Open Service Gateway Initiative) technology is the dynamic modeling system towards Java.OSGI service platform provides service to Java, and these services make Java become the first-selected environment of the integrated and software development of software.Java provides the portability of supporting product at a plurality of platforms.OSGI technology provides the standardization primitive that allows application program to use refining, the reusable and component construction that can cooperate.These assemblies can be assembled in an application and deployment.
JETTY is a servlet container of increasing income, and it is the web content based on Java, and for example JSP and servlet provide running environment.JETTY is used Java language to write, and its API is with the form issue of one group of JAR bag.Developer can change into JETTY container instance an object, can be rapidly that the Java application of some independent operatings (stand-alone) provides network to be connected with web.
OSGI service platform provides the function of constructing without the dynamic change of restarting on multiple network equipment.It is such as a lot of public function standard package interfaces such as http server, configuration, daily record, safety, user management, XML that OSGI alliance has developed.The compatible plug-in unit of these assemblies is realized and can be obtained from having carried out the different Computer Service provider of Different Optimization and trace utilization cost.In order to minimize the degree of coupling and to impel these degrees of coupling to manage, OSGI technology provides a kind of Enterprise SOA, and it can make these assemblies dynamically find the other side.
Some OSGI standard agreement implementation frameworks are the exploitation aspect trial WEB application all, as Equinox framework just provides bridge joint and embedded two kinds of supports that realize WEB application exploitation.To the no longer updating maintenance of the current official of bridging technology, substantially can abandon this mode.Support now that the embedded community that realizes WEB application exploitation is a lot, this mode is also fairly simple and availability is more intense.Equinox framework is realized exploitation and the operation support of WEB application by integrated JETTY container.
OSGI is very fast to WEB future development speed in recent years, but still also there is a big difference with traditional WEB development scheme.Development scheme and deployment way more complicated, the selection of container providing is also more single, and the integrated good container of catalogue is JETTY.The application of OSGI on WEB mainly contains two kinds of modes at present:
1, OSGI framework embeds WEB container: this mode need to be moved the WEB application program of OSGI by servletbridge mode, this mode belongs to bridge joint mode, and the community development of this respect at present stops substantially, no longer includes redaction and upgrades support.
2, WEB container embeds in OSGI container: this mode need to be supported OSGI operation WEB application by HttpService logon mode, and this mode is the implementation of the employing of current main-stream, JETTY as integrated in Equinox, and Felix is by Pax+web integration realization.
With regard to existing these two kinds of modes, can reach the basic demand to WEB application exploitation, but use more complicated, performance history debugging is more difficult and to build development environment also more difficult, because complicated dependence can allow developer badly battered.Therefore, wish to solve and on OSGI environment, develop the shortcut of WEB application, can allow developer conveniently debug, build environment simple, be conducive to team collaboration and raise the efficiency.
Summary of the invention
For the problem in correlation technique, the present invention proposes to be applicable to method for designing and the system of the OSGI-WEB framework under cloud computing environment, can give full play to the two advantage of OSGI and WEB.
According to an aspect of the present invention, provide a kind of method for designing that is applicable to the OSGI-WEB framework under cloud computing environment, having comprised: definition main works module; A plurality of fragments according to development requirement definition corresponding to different resource module, a plurality of fragments are all assigned to main works module; And main works module and a plurality of fragment are put into running environment.
Preferably, in running environment, be provided with the JETTY container of OSGI container and embedding OSGI container in advance.
Preferably, after main works module and a plurality of fragment are put into running environment, also comprise: running environment creates JETTY service; And all modules of JETTY service scan, respectively main works module and a plurality of fragment are resolved, and analysis result is registered.
Preferably, common configuration and the resources definition of main works module carrying WEB engineering, and main works module also comprises the service configuration information of OSGI module.
Preferably, a plurality of fragments comprise the definition content of WEB fragment and definition content and OSGI fragment.
According to a further aspect in the invention, provide a kind of design system that is applicable to the OSGI-WEB framework under cloud computing environment, having comprised: main works module definition device, for defining main works module; Fragment definition device, for a plurality of fragments corresponding to different resource module according to development requirement definition, a plurality of fragments are all assigned to main works module; And running gear, for main works module and a plurality of fragment are put into running environment.
Preferably, in running environment, be provided with the JETTY container of OSGI container and embedding OSGI container in advance.
Preferably, design system also comprises: JETTY service-creation device, for after running gear is put into running environment by main works module and a plurality of fragment, creates JETTY service; And parsing register device, for making all modules of JETTY service scan, respectively main works module and a plurality of fragment are resolved, and analysis result is registered.
Preferably, common configuration and the resources definition of main works module carrying WEB engineering, and main works module also comprises the service configuration information of OSGI module.
Preferably, a plurality of fragments comprise the definition content of WEB fragment and definition content and OSGI fragment.
The present invention, by the two combines by OSGI fragment technology and WEB fragment technology, has improved the efficiency and the convenience that utilize OSGI platform development WEB application.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is according to the process flow diagram of the method for designing of the embodiment of the present invention;
Fig. 2 is according to the main works module of the operation definition of the embodiment of the present invention and the process flow diagram of resource module fragment; And
Fig. 3 is according to the block diagram of the design system of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain, belongs to the scope of protection of the invention.
In order to solve problems of the prior art, the WEB fragment technology that main thought of the present invention is the standard definition of employing JAVAEE6 and the two of OSGI fragment technology are unified, thereby realize loose coupling and the exploitation of WEB resource fragmentation and management of OSGI module.So just can utilize OSGI development platform to realize the exploitation of WEB application, and this just requires to have, individual main works module HOST is unified loads and integrated fragment resource.Referring to accompanying drawing, describe the present invention in detail.
Fig. 1 is according to the process flow diagram of the method for designing of the embodiment of the present invention.
As shown in Figure 1, the method for designing 10 that is applicable to the OSGI-WEB framework under cloud computing environment according to the present invention comprises: S102, definition main works HOST module; S104, a plurality of fragments according to development requirement definition corresponding to different resource module, a plurality of fragments are all assigned to main works module; And S106, main works module and a plurality of fragment are put into running environment.
Specifically, define basic HOST module, this module is mainly carried common configuration and the resources definition of WEB engineering, also comprises some service configuration information of OSGI module simultaneously, and the final packing of this HOST module is a WAR bag.
In addition, need to define according to development requirement the fragment of different resource module, these fragments all need to specify same HOST module, represent that resource is loaded by this HOST.These fragments mainly comprise the definition content of WEB fragment and the definition content of OSGI fragment.Common JAR bag of result of these fragment packings.
After being described in referring to Fig. 2 the fragment that defines HOST module and resource module, how to operate.Fig. 2 is according to the main works module of the operation definition of the embodiment of the present invention and the process flow diagram of resource module fragment.
With reference to Fig. 2, after defining the fragment of HOST module and resource module, HOST module and a plurality of fragment are put into RUNTIME running environment.Wherein, RUNTIME environment has disposed the JETTY container of OSGI container and embedding OSGI container.RUNTIME will create JETTY service when starting, JETTY service will scan all BUNDLE(, each is module independently, comprises a plurality of fragments of HOST module, resource module and resource module), and the bag that is designated WEB resource is correctly loaded to parsing.
While specifically operating, as shown in the step of " WEB resource is resolved and registration " in Fig. 2, JETTY discovery WAR bag (that is, HOST module) immediately solution is depressed into temp directory, and loads and resolve WEB configuration file, and corresponding WEB Service Source is registered.Meanwhile, as shown in the step of " fragment resource is resolved and registration " in Fig. 2, also can scan the fragment of all resource modules, and correctly resolve the resource of WEB fragment, the result of resolving is equally also registered.
To the processing of the parsing of resource and registration, be known to those skilled in the art, be therefore no longer described in detail herein.In addition, resolve with registration after carry out such as monitoring HTTP service, to process the operations such as request and response be also known to those skilled in the art, so be also no longer described in detail.
Fig. 3 is according to the block diagram of the design system of the embodiment of the present invention.
With reference to Fig. 3, the design system that is applicable to the OSGI-WEB framework under cloud computing environment according to the present invention comprises: main works module definition device 32, for defining main works module; Fragment definition device 34, for a plurality of fragments corresponding to different resource module according to development requirement definition, a plurality of fragments are all assigned to main works module; And running gear 36, for main works module and a plurality of fragment are put into running environment.
In sum, by means of technique scheme of the present invention, by together with the fragment Technology Integration of the fragment technology of OSGI framework and traditional WEB, get the advantage of the two, thereby the dynamic of having given full play to OSGI framework and principle towards interface programming, also brought into play the resource of traditional WEB development scheme and processed, for the application and development of OSGI under WEB environment provides a kind of good method for designing.
In other words, OSGI fragment technology is for the treatment of WEB application resource, WEB application can not split into independently module by WEB application and develops with creating corresponding different application fragment, truly realizing by module.And, the fragment technology organic unity of OSGI fragment technology and JAVAEE6 standard definition, enriched the method for OSGI fragment processing WEB resource, being conducive to can self-defined WEB resource registering and the use of relevant WEB API for each sheet root module, is more conducive to the WEB relevant configuration such as Servlet, Filter, Listener of flexible configuration WEB.
In addition, to those skilled in the art, also can find out clearly, by the present invention, can also realize following advantage: 1) front end exploitation can be separated with background service exploitation, by the external issuing service of OSGI interface, front end only need to be paid close attention to interface, and front end is specifically used the service of interface, the note that can provide by the inventive method, can inject service automatically,, front end is quoted the note injection mode of interface service, and front end developer, as long as the interface service of introducing at needs is added a little note, can inject Service Instance automatically; 2) for developer, build development environment complicated no longer so, complicated dependence is also all resolved by the design's method, and developer only need to copy the RUNTIME environment of having put in order in the development machines of oneself, and makes easy configuration according to document; 3) method for designing of the present invention comprises and takes out some common components, if pass through Verification Components, abnormality processing assembly, log management etc. for front end, be conducive to like this adaptability of framework and can plug customization, the general pluggable common component of front end, these assemblies comprise abnormality processing, log management, list and test framework; 4) dynamic-configuration file reads and the mechanism of coming into force, and revises configuration file content, and backstage comes into force.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a method for designing that is applicable to the OSGI-WEB framework under cloud computing environment, is characterized in that, comprising:
Definition main works module;
A plurality of fragments according to development requirement definition corresponding to different resource module, described a plurality of fragments are all assigned to described main works module; And
Described main works module and described a plurality of fragment are put into running environment.
2. method for designing according to claim 1, is characterized in that, is provided with the JETTY container of OSGI container and embedding OSGI container in described running environment in advance.
3. method for designing according to claim 2, is characterized in that, after described main works module and described a plurality of fragment are put into running environment, also comprises:
Described running environment creates JETTY service; And
The all modules of described JETTY service scan, resolve described main works module and described a plurality of fragment respectively, and analysis result are registered.
4. according to the method for designing described in any one in claims 1 to 3, it is characterized in that, common configuration and the resources definition of described main works module carrying WEB engineering, and described main works module also comprises the service configuration information of OSGI module.
5. according to the method for designing described in any one in claims 1 to 3, it is characterized in that, described a plurality of fragments comprise the definition content of WEB fragment and definition content and OSGI fragment.
6. a design system that is applicable to the OSGI-WEB framework under cloud computing environment, is characterized in that, comprising:
Main works module definition device, for defining main works module;
Fragment definition device, for a plurality of fragments corresponding to different resource module according to development requirement definition, described a plurality of fragments are all assigned to described main works module; And
Running gear, for putting into running environment by described main works module and described a plurality of fragment.
7. design system according to claim 6, is characterized in that, is provided with the JETTY container of OSGI container and embedding OSGI container in described running environment in advance.
8. design system according to claim 7, is characterized in that, described design system also comprises:
JETTY service-creation device, for after described running gear is put into running environment by described main works module and described a plurality of fragment, creates JETTY service; And
Resolve register device, for making all modules of described JETTY service scan, respectively described main works module and described a plurality of fragment are resolved, and analysis result is registered.
9. according to the design system described in any one in claim 6 to 8, it is characterized in that, common configuration and the resources definition of described main works module carrying WEB engineering, and described main works module also comprises the service configuration information of OSGI module.
10. according to the design system described in any one in claim 6 to 8, it is characterized in that, described a plurality of fragments comprise the definition content of WEB fragment and definition content and OSGI fragment.
CN201310752317.6A 2013-12-31 2013-12-31 Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment Pending CN103677854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310752317.6A CN103677854A (en) 2013-12-31 2013-12-31 Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310752317.6A CN103677854A (en) 2013-12-31 2013-12-31 Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment

Publications (1)

Publication Number Publication Date
CN103677854A true CN103677854A (en) 2014-03-26

Family

ID=50315521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310752317.6A Pending CN103677854A (en) 2013-12-31 2013-12-31 Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment

Country Status (1)

Country Link
CN (1) CN103677854A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104679A (en) * 2014-07-18 2014-10-15 四川中亚联邦科技有限公司 Data processing method based on private cloud
CN104298512A (en) * 2014-10-10 2015-01-21 南京莱斯信息技术股份有限公司 OSGi-based (open service gateway initiative) functional unit type integrated development system
CN105404504A (en) * 2015-11-02 2016-03-16 北京锐安科技有限公司 Debugging method and device of Web assembly
CN107577483A (en) * 2017-08-31 2018-01-12 武汉斗鱼网络科技有限公司 Component engineering calls method, storage medium, equipment and the system of main works code

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040194059A1 (en) * 2003-03-27 2004-09-30 International Business Machines Corporation Method to deploy software using an open service gateway initiative (OSGi) framework
CN102404149A (en) * 2011-11-23 2012-04-04 华为技术有限公司 Management system and method of service characteristics
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040194059A1 (en) * 2003-03-27 2004-09-30 International Business Machines Corporation Method to deploy software using an open service gateway initiative (OSGi) framework
CN102404149A (en) * 2011-11-23 2012-04-04 华为技术有限公司 Management system and method of service characteristics
CN103309674A (en) * 2013-06-25 2013-09-18 深圳中兴网信科技有限公司 Software architecture system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林泊 等: "一个J2EE应用服务器的Web容器集成框架", 《软件学报》 *
谈祥庆: "基于 OSGi的企业级开发框架实践——认识OSGi和SpringDM", 《HTTP://BLOG.CSDN.NET/JACKTAN/ARTICLE/DETAILS/8581208》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104679A (en) * 2014-07-18 2014-10-15 四川中亚联邦科技有限公司 Data processing method based on private cloud
CN104104679B (en) * 2014-07-18 2017-07-11 四川中亚联邦科技有限公司 A kind of data processing method based on private clound
CN104298512A (en) * 2014-10-10 2015-01-21 南京莱斯信息技术股份有限公司 OSGi-based (open service gateway initiative) functional unit type integrated development system
CN104298512B (en) * 2014-10-10 2018-02-16 南京莱斯信息技术股份有限公司 A kind of functional unit formula integrated development system based on OSGi standards
CN105404504A (en) * 2015-11-02 2016-03-16 北京锐安科技有限公司 Debugging method and device of Web assembly
CN105404504B (en) * 2015-11-02 2018-12-25 北京锐安科技有限公司 A kind of adjustment method and device of Web component
CN107577483A (en) * 2017-08-31 2018-01-12 武汉斗鱼网络科技有限公司 Component engineering calls method, storage medium, equipment and the system of main works code
CN107577483B (en) * 2017-08-31 2019-11-15 武汉斗鱼网络科技有限公司 Method, storage medium, equipment and the system of component engineering calling main works code

Similar Documents

Publication Publication Date Title
CN107291523B (en) Web front-end message bus system
KR101784784B1 (en) Managing objects using a client-server bridge
CN103077024B (en) A kind of device and method supporting the on-demand customization of SaaS application flow and operation
CN101127655B (en) Method and system for integrating existing www systems
US8584081B2 (en) Server side application integration framework
CA2604449C (en) A system and method for flexible visual representation of presentation components
CN101847100B (en) Method for expanding software application and device
CN108011768B (en) Construction method of aop interception type HBase data storage micro-service architecture
US20060248121A1 (en) System and method for supporting packaging, publishing and republishing of wireless component applications
CN105224466A (en) A kind of integration test method based on Docker and system
US11561784B2 (en) Versioning of pipeline templates for continuous delivery of services on datacenters configured in cloud platforms
CN104484216A (en) Method and device for generating service interface document and on-line test tool
US9626157B2 (en) Method of projecting a workspace and system using the same
Gupta Java EE 7 Essentials: Enterprise Developer Handbook
US20080046882A1 (en) Deploying j2ee web applications in an osgi environment
WO2011045634A1 (en) Automated enterprise software development
CN102023856A (en) Method for outputting and operating data at server in formatting way according to demands of user
EP1387262A1 (en) Method to generate synchronization contracts for software components and web services
WO2014138894A1 (en) Systems and methods for controlling branch latency within computing applications
CN103645908A (en) Full life circle development achievement system of intemetware
CN103186455B (en) Page automatic test script generates method and system
CN102323884A (en) Web service container and method for issuing multiple Web services
US20130167110A1 (en) Modeled user interface controllers
US11392366B1 (en) Optimized compilation of pipelines for continuous delivery of services on datacenters configured in cloud platforms
CN103677854A (en) Design method and design system of OSGI (Open Service Gateway Initiative)-WEB framework applicable to cloud computing environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326

RJ01 Rejection of invention patent application after publication