How to debug bundle during development has always been a problem. Today, let's look at how eclipse solves this problem.
I usedEclipse javaee indigo 3.7.2Version.
Step 1: Enable eclipse and addPlug-inProject.
Step 2: Enter the project nameHelloworldbundleNote that you must select the running mode of the plug-in here.An osgi framework.
Step 3: Enter the metadata information related to the bundle. Here we use the default value.
What is service?
It is a Java object registered to osgi.
Service Registration:
Through bundlecontext: registerservice (Java. Lang. String [] clazzes, java. Lang. Object Service, java. util. dictionary properties)
Service search and use:
Through bundlecontext: getservicereference (Java. Lang. String clazz), return servicereference through bundlecontext: getservice (servicereference reference), return the registered service objec
Now more and more Java developers are talking about OSGi for a reason. When I went to school a few years ago, I had a lot of eclipse plug-in development, and I felt the flexibility and power of the Eclipse plug-in system, and the system and OSGi were same strain and feather. Recently planned to re-study OSGi, while learning to write an
What is OSGi? OSGi is a Java modular specification, translated by the Open Service Gateway Protocol (open Services gateways Initiative) OSGi is not an application-level framework, but a specification at the software design levelWhat does it bring to us?1 reusable component accumulation and reuse, functional decoupling. (multiplexing, cohesion, and coupling can al
About two years ago I received an email from bluedavy asking me if I could authorize him to translate the BND manual into Chinese. He explained that many people in China are using BND, however, there is a lack of relevant documentation. I am very happy to provide him with a webpage for publishing the Chinese version. The translated content looks strange. There are a lot of unfamiliar Chinese characters mixed with several familiar English words. It seems like you have met your friends in a distan
It takes some time to look at such a pile.
Osgi springhttp: // www.springframework.org/osgi/specification
Spring osgi specification (v0.7) Osgi SCA http://newton.codecauldron.org/osgi binding for exposing SCA services as osgi
Http://oscar.objectweb.org/
What is Oscar?
Oscar is an open source implementation of the open services Gateway Initiative (osgi) Framework Specification; the goal is to provide a completely compliant implementation of the osgi framework specification. oscar is currently compliant with a large portion of the osgi 3 specifications, although certain compliance work
Meaning:Directly use the editor to edit required osgi services, which is fast and efficient. Osgi container: Select knopflerfish_osgi_5.1.0 (http://www.knopflerfish.org/) to support osgi's latest R5 standard. Method: 1. Compile the activator. Java file in the current directory.(You do not need to create the corresponding package folder-save time), The content is as follows (Refer to the tutorial of Fel
First, what is OSGiThe OSGi (Open Service Gateway Initiative) technology is a series of specifications for the dynamic modular system of Java. OSGi, on the one hand, refers to the official OSGi alliance that maintains the OSGi specification and, on the other hand, the Java-language-based Service (business) specificatio
OSGI (Open Service Gateway Initiative) OSGI defines a dynamic model system that helps you better manage your code structure and code lifecycle, cooperation with code modules (loose ).
Modularity-the code is divided into clear functional blocks with clear interface interactions between functional blocks.
You will naturally think that Object-oriented has the concept of a module. But there are limitations:
1.
Reprint please retain the author information:
Author: 88250
blog:http:/blog.csdn.net/dl88250
MSN Gmail qq:dl88250@gmail.com
SummaryLast time, we analyzed the design of the KF (Knopflerfish) framework and practiced the design of an OSGI based application framework. In this context, we will implement the OSGi specification Http Service based on KF, do a simple servlet combined with html/javascript practice
1. First knowledge of osgi
Osgi features: Hot swapping and modular programming. It seems very attractive, but if you are a beginner, I think you will be suffering from a lot of problems at the beginning. Many concepts need to be understood, and many mistakes are just ClassNoFinded, you may be bored. There are also so many annoying configurations when constructing an osg
Course Outline1:OSGI Overview and Course plan2:apache Felix Introduction3:osgi Helloword4:osgi Bundle5:bundle's event monitoringClass loading mechanism of 6:OSGIIntroduction to 7:OSGI Services8:OSGI Service TrackerEvent Monitoring for 9:
Osgi is currently the most promising technology that can bring javaee into the next golden decade. For a long time,
Developers and enterprise users are not satisfied with the modularization and dynamic capabilities of Java EE, which are the weakness of Java ee. Do
Java EE 6's modular capabilities have been improved a lot, such as the Web fragment introduced by servlet3.0, but it is still not enough.
Complete. On the contrary,
1. Introduction
Ordinary Web applications are converted to OSGi applications, often encountering a nonstandard case of the jars that are dependent on the application, which may only comply with some of the OSGi specifications, or even manifest information is empty. This situation is simply not possible to use this non-standard jar as a bundle in OSGi application
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
Eclipse 3.0 does not replace the original plug-in mechanism with osgi. It is only compatible with the standard: it provides users with a series of APIS for access. In this process, some changes must be made (such as plugin registry and loading mechanism) to be fully compatible with osgi standards. The original plug-in core only supports static expansion. That is to say, to change an existing plug, you must
Today, in the course of learning OSGi, the first HelloWorld plug-in project was built as described in the book, and the following error occurred during the running process:! SESSION 2014-06-09 21:04:49.038-----------------------------------------------eclipse.buildid= Unknownjava.version=1.6.0_35java.vendor=sun Microsystems Inc.bootloader Constants:os=win32, ARCH=x86_64, WS=win32, Nl=en_uscommand-line arguments:-dev file:e:/xjtu/.metadata/.plugins/org
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 notes mainly introduces the
Modular Specification
In Java, there is no modular concept, or there is no de facto standard. Is how to form a module, which modules are used internally, and which modules are used externally.
Osgi can solve the above problems and ApplicationsProgramIt can be built like building blocks. For example, for a running system, the log service module is not provided in the system, then, you can directly develop the corresponding log service module and dy
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.