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
1 answer

Junit testing for rest services

I want to tests my rest services by junit. The services are in BnD bundle(Felix).Actually, I want to write test cases for rest url. Can you suggests me any doc or can you tell me how can I do this. Please remember, My project in BnD bundles.
priya
  • 19
  • 6
0
votes
4 answers

How to filter OSGi Bundles in Plugin folder with Apache Felix

We are loading OSGi Bundles with Apache Felix and its subproject Apache File Install from a given folder. In our case it is possible that in this folder will be bundles with an Import-Package which is not on the container's classpath. This results…
cornr
  • 653
  • 4
  • 20
0
votes
1 answer

How to configure LogService for embedded Apache Felix?

I am trying to embed Apache Felix in my application. Its working good except when one of my bundle starts depending on osg.osgi.service.log. Here is how I am starting the embedded Felix : Map config = new HashMap<>(); …
jchampemont
  • 2,673
  • 16
  • 19
0
votes
0 answers

Apache Felix & OSGi

I have created an OSGi Bundle using BnDTools OSGi Project and included many external jars under one jar as per my requirements and configured Execution Environment as J2SE 1.8 but on Console getting error as : Missing Requirements : rt.jar this jar…
0
votes
2 answers

Using declarative services with embedded Felix framework

I am developing a desktop OSGi app with declarative services on Mac OS X using Netbeans and Maven. I start the Felix framework from within a Java application and load my OSGi bundles using AutoProcessor.process(). However, I cannot get services…
Stephen Winnall
  • 301
  • 3
  • 14
0
votes
3 answers

Apache Felix Maven Bundle Plugin avoid inlining of dependencies

How can I achieve that the plugin does not inline the dependencies in the new build jar file? org.apache.felix maven-bundle-plugin
Benny
  • 1,435
  • 1
  • 15
  • 33
0
votes
1 answer

How felix console uses metatype.xml file

I want to understand the use of metatype for component. I understand, if we keep it true than it will generate OSGI-INF/metatype/metatype.xml else it would not. Also, I'm well aware that keeping the value of attribute true will show it in Apache…
Shashi
  • 746
  • 10
  • 39
0
votes
0 answers

What is configuration binding in felix

I've seen that after creating a new Felix Configuration in my java class and while configuring that in Felix console, under 'Configuration Binding' it says 'Unbound or New Configuration' with no value for bundle field along with the…
Shashi
  • 746
  • 10
  • 39
0
votes
1 answer

does org.apache.aries.blueprint.preemptiveShutdown = false guaranties shutdown of bundles in start-level order

We have a shared service bundle running in our Karaf container and we would like shared bundle to go down last when we are shutting down container. We would like to know if org.apache.aries.blueprint.preemptiveShutdown = false guaranties shutdown of…
user3097127
  • 29
  • 1
  • 4
0
votes
1 answer

Error running a Maven OSGi project

I'm trying to run a maven OSGi bundle project, but I get: Exception in thread "main" java.lang.NullPointerException: Specified service reference cannot be null. at System.out.println(framework.getBundleContext().getService(reference)); below in…
0
votes
1 answer

Amdatu OSGI Event Handler time delay to listen when other listener are listening

I am using amdatu and using the osgi event listener for multiple bundle the issue is when i create more thread the event handler is working but its giving the response with time delay Example : I have 2 event listener one will do the VM creation JOB…
0
votes
1 answer

Deploying Activiti workflow to OSGI(Felix)

I have developed a activiti workflow, I am trying to call the workflow through the code from an OSGI bundle but it gives the dependency errors. What would be the correct way to deploy the workflow into OSGI container?
Shridhar
  • 11
  • 5
0
votes
1 answer

Don't load/scan class files from a specific jar

I'd like to know how to configure the maven-bundle-plugin (backed by bnd) to completely ignore the classes contained within an embedded jar. Background I'm working in a controlled environment where the environment my code is running on is defined by…
Matt
  • 722
  • 10
  • 20
0
votes
0 answers

Apache Felix: Command not found 'junit'

I am trying to write sample test cases for OSGI services by following the documentation here; http://felix.apache.org/documentation/subprojects/apache-felix-ipojo/apache-felix-ipojo-junit4osgi/apache-felix-ipojo-junit4osgi-tutorial.html And test…
Rajkishan Swami
  • 3,569
  • 10
  • 48
  • 68
0
votes
1 answer

Strange service injection in Sling Servlet

We encountered a strange injection behaviour of service into our servlets. First serlvet looks as follows: @Service(Servlet.class) @Component( label = "Some Label", description = "Some description", metatype = true, …
Oleksandr Tarasenko
  • 1,454
  • 15
  • 21