Spring, the popular full-stack Java/Jee application framework in recent years. With the release of 2.0, spring is more comprehensive and powerful. osgi is not so famous, but everyone in eclipse is familiar with it. After eclipse 3.0, osgi is used as the basis for its plug-in architecture implementation.
To talk about osgi, os
Now more and more Java developers are talking about OSGi in a way that makes sense. When I went to school a few years ago, I did a lot of Eclipse plug-in development, and then I personally felt that the Eclipse plug-in system is flexible and powerful, and the system and OSGi are also feather. Recently intend to re-examine the system of OSGi, while learning to wri
"Yangchun, Jiangnan grass long." Miscellaneous peanut trees, flock to fly "-------from the book of Uncle ChanRemember the first time to see these beautiful words, is in the middle school textbooks, the specific article is also unknown. Pick up the phone this morning, see the date on the screen is written: B-not the goat's February early two vernal equinox/Dragon head/Land public birthday. The year of the goat, time really good fast, during the spring
To use OSGi Annotation in Bundle, you must first define two BeanPostProcessor. We have read the previous article. Here we will take a look at it, as shown in: (figure 1) the above two beans are inherited to org. springframework. beans. factory. config. instantiationAwareBeanPostProcessorAdapter aims to execute additional operations for each Bean in the context of Spring instantiation. Here we want to intercept whether each Bean initialized in Spring c
A recent study, which learned about OSGi Technology, felt that OSGi was somewhat difficult to learn. But finally mastered and popularized will be a more practical technology for system development. Here and everyone to share their own sentiment. 1. What is OSGIOSGi , an "open service Gateway", is a Dynamic modular specification initiated by the OSGi Consortium wi
After installing Apache Felix, the following is how to develop my first bundle. The entire process is a referenceApache Felix Tutorial example 1-service event listener bundle.
Open a DOS window and switch to the directory where the bundle is to be stored.D: \ develop \ eclipse-jee-indigo-SR2-win32 \ workspace \ Felix-AnalysisFor example. Create an empty project using Maven.
MVN archetype: Create-dgroupid = Felix. Tutorial-dartifactid = example1-dpackagename = Felix. Tutorial. example1-dve
Eclipse failure Solution
Refer to blogHttp://blog.csdn.net/jaopen/archive/2007/12/30/2004631.aspx
Cause Analysis blogHttp://www.eclipsezone.com/eclipse/forums/m92212393.html
When eclipse is started one day, the following error occurs:JVM terminated. Exit code =-1-Dosgi. requiredjavaversion = 1.5-Xms40m-Xmx512m-XX: maxpermsize = 256 m....-Vm d:/program files/Java/jdk1.6.0/bin/../JRE/bin/client/JVM. dll...
It seems to be caused by a large memory configuration. I modified eclipse. ini and added the
This Photoshop tutorial mainly introduces the drawing process of a fall theme illustration. This example mainly applies the gradient, pen, brush and other tools, I hope you like.
This Photoshop tutorial mainly introduces the drawing process of a fall theme illustration. This example mainly applies the gradient, pen, brush and other tools, I hope you like!
Effect chart
Material:
Material 1
Material 2
Production process:
1, select the "File/new" menu, open the new or CTRL + N dialog box nam
OSGi framework of Apache Felix Equinox The concept of OSGi bundle is the difference between the PlugIn of the Eclipse of Maven's module .... OSGi and Maven Maven also features a modular system, but it is a compile-time tool, not a runtime framework. MAVEN is not a competitor to
basically OK.Figure 7. Select Org.eclipse.osgi Plugin
Dependent plug-in selection:Figure 8. Choice of dependent Plug-ins
OK, if your running environment is OK, click Run.Figure 9. Running an OSGi project
Congratulations on your success.
OSGi Console
The OSGi console is still relatively new to developers who are accustomed to developing common Java applications.
hierarchy:
two. Examples of development using SPRINGDM
a) environmental Construction
I. Adding a spring environment
Download Spring dynamic module, the current version is 1.0-RC2. Place the following jar under the Eclipse/plugins directory.
Spring-osgi-core-1.0-rc2.jar
Spring-osgi-io-1.0-rc2.jar
Spring-osgi-exten
Product.configuration Click on the "Add button" and add the following plugins:
Org.eclipse.equinox.p2.ui
Org.eclipse.equinox.p2.ui.sdk
Org.eclipse.equinox.p2.ui.sdk.scheduler
Org.eclipse.equinox.p2.transport.ecf
Org.eclipse.equinox.p2.touchpoint.natives
Org.eclipse.equinox.p2.garbagecollector
Org.eclipse.equinox.p2.touchpoint.eclipse
Org.eclipse.equinox.ds
Org.eclipse.equinox.event
Org.eclipse.equinox.frameworkadmin.equinox
Org.eclipse.equinox.fra
Eclipse's plug-in architecture allows us to flexibly define plug-ins and assemble them into pluggable software systems. osgi's declarative services (DS) there is a similar idea with eclipse extension points (see a detailed comparison Article). Naturally, if DS is applied to Web applicationsProgramWe will be able to build SOA Web applications by defining our own "extension points. "Configurable" in the question refers to the product/solution tailored to the customer by providing different package
= listener. getStudentManageService (); // call the service studentManage. add (); System. out. println ("action listener end... ");} public void stop (BundleContext context) throws Exception {}// listener class UserManagerListener implements ServiceListener {SortedSet
Result:
How to Use eclipse Equinox for OSGI and webService integration? What methods do you have to talk about?
. Running an OSGi project
Congratulations, you've succeeded.
Back to top of page
OSGi Console
The OSGi console is relatively fresh for developers who are accustomed to developing common Java applications. In general, with the OSGi console, you can manage the lifecycle of all bundles in the system, as well as view the s
Solve the NoClassDefFoundError of third-party packages in the OSGI environment-Linux general technology-Linux programming and kernel information. The following is a detailed description. I finally fixed this problem and made a conclusion:
1. Transform the class file of a third-party package into a bundle and export all packages.
2. Use equinox of eclipse to start all bundle
3. In the eclipse environment,
has a certain OSGi basic knowledge and Java basics. After reading this article, if the reader has an OSGI runtime environment and the Java source code that you want to compile to run the environment, you can build the module that compiles the bytecode file for release and two development using this running environment.
Figure 1 depicts the traditional OSGi-base
environment is OK, click Run.Figure 9. Running an OSGi project
Congratulations on your success.
Back to the top of the page
OSGi Console
The OSGi console is still relatively new to developers who are accustomed to developing common Java applications. In general, through the OSGi console, you can manage the lifecycle o
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 include these static Resources in the bundle
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 framework Environment Configuration
Configure the running environment and select Run> RUN confi
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.