osgi

How do you communicate between eclipse declarative services and Views (ContentProviders)

[亡魂溺海] 提交于 2019-12-03 08:29:00
Say you have an eclipse plugin with various views, these views should display data from some OSGi bundle that pushes data to the Views. Rather than have every view communicate with the OSGi bundle, I have an intermediate Facade class that acts as a blackboard for the views and manages communications between the views and the other OSGi bundle--well, that's the theory. The problem comes about because the ui bundle (with the Views and the Facade) communicate with the other bundle (call it the DataStore) using Declarative Services. Since the Data Store receives asynchronous data updates from yet

org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console

落花浮王杯 提交于 2019-12-03 07:40:32
问题 Command : \eclipse-SDK-4.2RC3-win32-x86_64_001\eclipse\plugins>java -jar org.eclipse.osgi_3.8.0.v20120529-1548.jar -console Exception (from Log files) !SESSION 2012-06-22 23:36:27.649 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_25 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -console !ENTRY org.eclipse.osgi 4 0 2012-06-22 23:36:28.632 !MESSAGE Could not find bundle: org

How to choose in runtime among several OSGi services in an intelligent way?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 07:23:42
I've in mind an intelligent system which can choose among available OSGi services dynamically. That is, choose an implementation or another depending of some runtime parameter. For example, notify to a running algorithm that change an operator after several iterations, or depending of load balancing in a system or whatever. while(stopCriterion){ operator.doSomething(); //There exist many operator implementations } My first approach is to use DS to expose the services and bind services with 0..n and dynamic policy. Then, from an external intelligent component, notify the algorithm which service

Creating a complete OSGi application with Felix & Maven

こ雲淡風輕ζ 提交于 2019-12-03 07:16:36
I have a set of OSGi bundles being built using Maven and I was wondering if there is a Maven plugin available that allows me to do the following: Specify the set of bundles to include in a distribution and/or specify a single bundle and have the dependencies resolved. Build a complete distribution of the framework. What I mean is a single zip file containing all the bundles needed, plus the correct directory structure for felix so that the user can simply unzip the file and type "java -jar bin/felix.jar". I did some Googling and I didn't find anything very promising aside from appassembler.

Problems with maven built OSGi including dependencies

大兔子大兔子 提交于 2019-12-03 06:30:41
I'm currently starting with OSGi, iPOJO and iPOJO Annotations and trying to build a simple component to be deployed in Felix. Unfortunately, I'm stumbling over various problems which take me hours to solve or which I cannot even solve after wasting hours, like the following: I want to use an existing library in my OSGi bundle which we build using Maven. The library is currently not "OSGI-ified" and we are not planning to do so in the medium term. Because of that, I want to include this library and all of its dependencies in the bundle, using …: <Embed-Dependency>*</Embed-Dependency> <Embed

Working with Maven, OSGi and Bndtools

自古美人都是妖i 提交于 2019-12-03 06:14:11
Today I was asked whether it is a good idea to use Maven in our current OSGi application. We used Bndtools and its great since it makes development as easy as possible. Bndtools uses OBR to maintain other bundles and dependency resolution even during the application is running. Since Maven is widely spreading around and is so popular, mostly all try to use it in OSGi environments too. For me these are two different approaches. OSGi has a its own declaration of dependencies, the MANIFEST.MF and Maven a pom, where you can declare them. So if you use both of them, you will declare dependencies

Why use @Component annotation with each service in CQ

爱⌒轻易说出口 提交于 2019-12-03 06:10:57
I am bit confused about following things. I understand @Service and @Component annotations are main annotations when we define a component or a service in OSGi. I am referring to http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html and What is the difference between OSGi Components and Services Questions: A service can not be created without @Component annotation, why is that? I understand once we define a service its life-cycle is managed by OSGi differently but what are the advantages of doing so? How do we use class defined as @Component as

Glassfish as an OSGi Container

扶醉桌前 提交于 2019-12-03 06:07:50
I'm evaluating OSGi containers and the subject came up of using Glassfish to contain my OSGi application components. My question is: Is Glassfish good for this? Does anybody have any experience using it in this way? Background: - The application is not a Java EE application, it's a Spring application. - I've been evaluating Felix + Tomcat. - I've never used Glassfish but it has some features that our operations people are interested in. Thanks! GlassFish is IMO a serious candidate and I would definitely look at it. Some resources: GlassFish/OSGi Dashboard GlassFish and OSGi (and Sahoo) at

Trying to install new features in Eclipse (using ADT as the base package)

不羁的心 提交于 2019-12-03 05:47:43
When I try to install new features in Eclipse (using ADT as the base package) I get ‘Installing Software’ has encountered a problem. An error occurred while collecting items to be installed An error occurred while collecting items to be installed session context was:(profile=profile, hase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.android.ide.eclipse.base,21.1.0.v201302060044-569685 No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,21.1.0.v201302060044-569685 No repository found containing:

OSGI creating modular web application

元气小坏坏 提交于 2019-12-03 05:17:33
问题 I have been looking for a solution to create a modular web application, which is modular in the sense that user can provide its own plugin in form of a simple jar which will then provide its own data to my web application and my webapp will be responsible for displaying it. Now the catch is i want my web app to be as generic as possible without relying on the j2ee web container to support anything . i.e. i cant rely on my web container to provide osgi support and deploy web application as an