In the previous articleArticleThe osgi series-one of the Web applications for developing servers: Servlet implementation, describes how to develop servlet methods under the osgi framework. However, not all web applications only have servlets and there are many static resources, such as HTML, images, CSS, and Js, in this article, we will continue to explain how to
Course Introduction
OSGI technology is a Java-oriented dynamic model system. There is a very famous phrase in the Java circle: OSGI-architect's paradise. In other words, OSGI makes software development easier.
Thankfully, there is a similar framework-CTK Plugin Framework in
osgi specification solves all problems of modular applications for us. For (1), in osgi, each module is called a bundle, that is, a service package, which consists of a bundle list file, code file, and resource file. The osgi framework can load modules from a file, folder, or URL.
OSGi after working on the first project. Even Java is not how can, all of a sudden with OSGi, all kinds of concept nouns do not understand, and there is no time to study deeply, only in the framework has been set up to write transactions, write business processes, database additions and deletions to change, after a long time to understand slowly.This series of no
. equinox. HTTP. registry. resources " > resource alias ="/Web" base-name ="/web_files " /> extension > plugin >
Note: if an error is prompted in manifest. MF, you only need to add "; singleton: = true" after the bundle-symbolicname line.
5. Now you can start this application. In the eclipse menu, select "Run-> open run dialog... ", create a new startup configuration item under the" osgi fram
In the previous article, introducing the relationship between structural modularity and agility, in the second article in this series, we'll discuss OSGi, which plays a central role in implementing Java's structural modularity, and there is a natural link between OSGi and popular agile methodologies.
1 but we have achieved modularity!
The vast majority of developers agree that the program should be modula
corresponding dependency and plug-in management.Development tools IntelliJIntelliJ has a rich plug-in, with good smart hints, and support for Maven is very good, although Eclipse said there are a lot of plug-ins, but to MAVEN support is not very good, so do not choose Eclipse as a development tool.SummarizeThis article is only about the basic framework and containers needed to explain the next blog will be the specific environmental integration steps
= "/Web"Base-name = "/web_files"/>
Note: if an error is prompted in manifest. MF, you only need to add "; singleton: = true" after the bundle-symbolicname line.
5. Now you can start this application. In the eclipse menu, select "Run-> open run dialog... ", create a new startup configuration item under the" osgi framework "item on the left, click" deselect all "on the right to clear all check boxes, and the
Brief introduction
The OSGi framework provides a good mechanism for developing modular dynamic applications, which are becoming very popular recently. The latest OSGi Service Platform Release 4 V4.2 specification includes a specification named Blueprint Container.
Spring Dynamic Module
If you are familiar with the spring f
As a new de facto industrial standard, OSGi has received wide attention, its service-oriented (interface) basic idea and the capability of dynamic module deployment are the goals that enterprise applications have been pursuing for a long time. Spring is a well-known lightweight Java development framework characterized by interface-oriented programming and non-invasive dependency injection. The combination o
Eclipse comes with the equinox of OSGi and examines the OSGi environment of Eclipse:
Run-->run Configuration-->osgi framework--> Right-click New
Select Org.eclipse.osgi when selecting Bundles. Click Run.
Error occurred: org.osgi.framework.bundleexception:couldnotfindbundle: org.eclipse.equinox.console at Org.eclipse.os
As an enterprise-class Web application, the MVC framework is essential. Spring MVC is currently widely used, and this article describes how to implement the integration of the spring, MyBatis, and spring MVC frameworks in OSGi applications, where the integration of spring MVC is difficult because spring is integrated into OSGi, Each bundle has an isolated applica
The OSGi framework defines a dynamic modular system for Java that allows you to better control the structure of your code, dynamically manage the life cycle of your code, and provides a loosely coupled approach to code writing, and more notably, its specification documentation is exhaustive. --"OSGi combat"OSGi tiering
Two Web development methods
There are two ways to develop B/S applications based on osgi:
1) embed an HTTP server in the osgi framework
2) embed the osgi framework in the servlet containerHTTP server embedded in osgi
Deep understanding of OSGi Web application specifications and GlassFish osgi/web containers
Related articles: GlassFish osgi-javaee (i) GlassFish and enterprise-class OSGi development
Http://www.bianceng.cnhttp://www.bianceng.cn/Programming/Java/201312/38601.htm
In Part1, we mentioned that Enterprise
use. What brings such magic to Elipse is equinox (eclipse) (http://eclipse.org/equinox ). What is the relationship between osgi, osgi, and equinox? A long term and a simple understanding is equivalent to the relationship between JBoss and EJB specification, or the relationship between Tomcat and servlet specification.
One core concept in osgi is bundles.For equi
for the project, which reads as follows:Alias= "/web"Base-name= "/web_files"/>Note that if the MANIFEST.MF prompt error, as long as the bundle-symbolicname this line after adding "; Singleton:=true" can be resolved.5. You can now start the application. In the Eclipse menu, select "Run->open Run Dialog ..." To create a new startup configuration item under the "OSGi Framework" item on the left, and click "De
of Eclipse, and then in the Open window, click on the "Add" button on the right side of work with "add Repository" in the popup. window and enter name (M2eclipse), enter the URL of the Maven plugin in location: http://m2eclipse.sonatype.org/sites/m2e
Install MAVEN add-ons in eclipse with the same steps as above
Website: Http://m2eclipse.sonatype.org/sites/m2e-extras
5. Install PAX cursor plugin. After the plugin is loaded, in the run configuration in Eclipse, the Pax Runner page appears after
Osgi Specification
L an open specification for the delivery of managed services to networked environment.
L osgi services platform: osgi framework a set of standard service Definitions
The osgi framework
L
The build of CQ is based on the OSGi container, so the custom code and functionality can be added to CQ via the feature provided by OSGi. To deploy custom code to OSGi containers, developers must package their code as a bundle. An OSGi bundle is just a jar file with additional metadata added. This article details how t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.