Questions tagged [apache-felix]

Apache Felix is a community effort to implement the OSGi R4 Service Platform and other interesting OSGi-related technologies under the Apache license.

Apache Felix is a community effort to implement the OSGi R4 Service Platform and other interesting OSGi-related technologies under the Apache license. The OSGi specifications originally targeted embedded devices and home services gateways, but they are ideally suited for any project interested in the principles of modularity, component-orientation, and/or service-orientation. OSGi technology combines aspects of these aforementioned principles to define a dynamic service deployment framework that is amenable to remote management.

Subprojects:

The Felix project is organized into subprojects, where each subproject targets a specific OSGi specification or OSGi-related technology; the following list summarizes each released subproject:

  • Config Admin - An implementation of the OSGi Configuration Admin service specification for managing bundle configuration properties.
  • Dependency Manager - An API-based component model to simplify OSGi-based development.
  • Event Admin - An implementation of the OSGi Event Admin service specification for event-based communication.
  • File Install - A simple, directory-based management agent for managing bundle deployment.
  • Framework - An implementation of the OSGi R4.2 core framework.
  • Gogo - An advanced shell for interacting with OSGi frameworks.
  • HTTP Service - An implementation of the OSGi HTTP Service specification.
  • iPOJO - A sophisticated service-oriented component model to simplify OSGi-based development.
  • Log - A simple, memory-based implementation of the OSGi Log service specification.
  • Maven Bundle Plugin - A Maven plugin to simplify building bundles.
  • Maven SCR Plugin - A Maven plugin to simplify using Declarative Services.
  • Metatype - An implementation of the OSGi Metatype service to describe types needed by bundles.
  • OSGi Bundle Repository - A bundle repository service to simplify discovering and deploying bundles and their dependencies.
  • Preferences - An implementation of the OSGi Preferences service specification for storing settings and preferences.
  • Remote Shell - A remote, text-based interface to the Apache Felix Shell.
  • Service Component Runtime - An implementation of the OSGi Declarative Services specification providing a service-oriented component model to simplify OSGi-based development.
  • Shell - A very simple shell service implemented as a bundle for interacting with an OSGi framework instance.
  • Shell TUI - A simple, text-based interface to the Apache Felix Shell.
  • UPnP - An implementation of the OSGi UPnP Device service specification for UPnP device integration.
  • Web Console - A simple tool to inspect and manage OSGi framework instances using your favorite Web Browser.

Official Website: http://felix.apache.org/

Useful Links:

921 questions
0
votes
0 answers

OSGI - Package export not working

I am currently trying to create a modular system using the Apache Felix OSGI runtime container. And I've run into problems when trying to extend a class from a "Common" module. I've read online that i need to export a package to make it visible…
Daniel Holst
  • 139
  • 10
0
votes
1 answer

felix maven-bundle-plugin error (&(osgi.wiring.package=com.a.b.c)(version>=xx.0.0)(!(version>=yy.0.0)

i use Apache Felix to implement osgi bundle and use it as embedded Felix framework to call boundle here is my maven plugin to build MANIFEST.MF : org.apache.felix
Ahmad R. Nazemi
  • 775
  • 10
  • 26
0
votes
2 answers

Change Bundle level in felix?

I know how to set an initial bundle level, for just to be deployed bundle: bundlelevel -i 5 But how do I change the level of an existing bundle? Help for bundlelevel says: bundlelevel - set bundle start level or initial bundle start level …
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
0
votes
2 answers

OSGI LogService.log method does not work!

I have the weirdest bug, when writting my LogHelper class. I am using org.osgi.service.log.LogService (with Apache Felix implementation). Now I can call the: LogService.log(int level, String message) with no problems, but when I try to use the one…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
0
votes
0 answers

With bnd, is it possible to have define a bundle just in the state resolved, not started?

I wan't to delay the start of some bundles, but of course I want to resolve them. I want to start the bundles by myself at a later point in time. Is this possible at all through bnd? My use case is basically that I don't want to start the gogo shell…
Mauli
  • 16,863
  • 27
  • 87
  • 114
0
votes
2 answers

OSGI serviceChanged method

I'm writing a system that lets users plugin their own code to monitor sensors. I want to write a basic listener that listens for changes in other bundles. I came across ServiceListener which seems handy for my cause. My question is: when does…
0
votes
1 answer

OSGI vs Apache Felix

I have to create a project for school. We want to create a system that monitors sensors. Since sensors develop very much, there is the possibility that they use other sensors in a couple of years. To capture that problem, we want to create a system…
0
votes
3 answers

Can't add the plus button in OSGi Apache Felix Web Console to create new configuration instances

I use a ManagedServiceFactory to create new instances by the parameters that are included in the configuration files. I want to do it by the Apache Felix Web Console but it doesn't give me the plus button to add new configurations. I think I am…
Spronghi
  • 21
  • 6
0
votes
1 answer

Karaf OSGI How to copy files as part of postProcessing?

I have some files that I need to copy to a directory configured in the .cfg file as part of installing the bundle in Karaf server. I couldn't figure out what exactly is the js method to invoke. Below id the snippet I used to extract a jar using…
Maria
  • 1,161
  • 3
  • 12
  • 21
0
votes
2 answers

OSGI Activator class not found

I'm trying to make the simplest OSGI example in order to see if it works on a particular Java Virtual Machine. Currently I'm testing it with Open JDK 1.8.0. I'm following this tutorial. I have the exact same files except that I removed the package…
Cosmin Ioniță
  • 3,598
  • 4
  • 23
  • 48
0
votes
1 answer

Apache Felix - How to guarantee injecting of dynamic references before an activate method

Here is snippet of intrested case: We have some configuration class it can have multi instances. It suppose that we supply several configurations in one bundle. It's one scope. @Service @Component public class SampleConfigurationImpl implements…
Alex
  • 139
  • 2
  • 8
0
votes
0 answers

NetBeans, Maven, Felix, OSGI: Unable to resolve missing requirement

I have isolated an issue I am having with trying to build an OSGi bundle with a dependency using the Maven OSGi Bundle project template in NetBeans 8.2. I have Apache Felix integrated as the OSGi runtime container. I have uploaded a ZIP file that…
Samuel Slade
  • 8,405
  • 6
  • 33
  • 55
0
votes
2 answers

Create A Service And Allow Only One Bundle To Hold That Service At any Time

I'm trying to create a service such that once it is created it only allows itself to be held by a single consumer/bundle at any one time. (If this is against the philosophy/specification of OSGi then that obviously provides a quick answer but…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
0
votes
1 answer

OSGI - Choose which bundle to activate from another Component class

I want to develop OSGI storage service so I created an interface called Store. Now, I have two classes that implement this interface. SqlStorage.java @Component(immediate = true) @Service public class SqlStorage implements Store { //some code…
kaitosenpai
  • 973
  • 1
  • 7
  • 12
0
votes
1 answer

Felix/OSGi: How to use SCR components that are not OSGi services?

Apache Felix's SCR allows to declare (via annotations or XML) components that will then be instantiated, hooked up to their dependencies, and registered as OSGi services. It is also possible to skip the service registration part, and just have SCR…
Thilo
  • 257,207
  • 101
  • 511
  • 656