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
7
votes
4 answers

accessing command-line arguments from OSGi bundle

I have an application that runs as a collection of OSGi bundles. I start it using a very small wrapper that embeds the Felix framework. The necessity of that wrapper irks me a little, as does the fact that it depends on Felix (whereas the…
Thilo
  • 257,207
  • 101
  • 511
  • 656
7
votes
3 answers

How to exclude version numbers from Import-Package with maven-bundle-plugin?

I'm having trouble with the MANIFEST.MF generated by the maven-bundle-plugin. For some reason, when I have the version numbers listed in the field, the OSGi framework doesn't load my bundle. I've experimented and noticed that if I…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
7
votes
1 answer

How to use multi value(array) property in OSGi?

I have the following service: @Component( immediate = true, metatype = true) @Service @Property(name = EventConstants.EVENT_TOPIC, value = {ReplicationAction.EVENT_TOPIC}) public class MyService implements EventHandler { …
dzenisiy
  • 855
  • 10
  • 32
7
votes
2 answers

maven-scr-plugin fails with SCRDescriptorException "unable to scan files ... Class file format probably not supported by ASM ?"

Using the following dependencies (amongst others, the bundle is supposed to be installed to AEM 6.1) runtime is java8 maven-scr-plugin 1.15.0 org.apache.felix.scr.annotations: 1.9.8 org.apache.felix.scr.ds-annotations: 1.2.8 I get this…
lain
  • 73
  • 1
  • 5
7
votes
2 answers

Disabling Cache in Apache Felix

i'm trying to follow the instructions in this thread (http://osdir.com/ml/dev-felix-apache/2009-05/msg00051.html) to disable file system bundle cache in felix. I couldn not find a concrete example online. Can somebody help me with this? Is this…
Klaus
  • 2,328
  • 5
  • 41
  • 62
7
votes
1 answer

Is it possible to use wildcards in org.osgi.framework.system.packages.extra in Felix?

Is it possible to use wildcards in org.osgi.framework.system.packages.extra in Felix? For example, I want to export to the org.osgi.framework.system.packages.extra packages like my.package.* .
Arthur
  • 3,253
  • 7
  • 43
  • 75
7
votes
2 answers

Unresolved constraint in bundle, missing requirement osgi.wiring.package

I am having a project using OSGi-(felix), SpringDM, hibernate, maven. when I installed bundle, it is ok, the output when I run bundle id is: LastModified 1384619994484 Headers [Manifest-Version=1.0, Bundle-Vendor=NguyenVinhLinh,…
Nguyen Vinh Linh
  • 107
  • 1
  • 1
  • 11
7
votes
1 answer

Unable to resolve 1.0: missing requirement [1.0] osgi.wiring.package; (&(osgi.wiring.package=

I am trying to start one of my bundles, but as soon as I start it, I get the below exception. I am not sure what the problem is. org.osgi.framework.BundleException: Unresolved constraint in bundle GoldeneyeModellingFramework [1]: Unable to resolve…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
7
votes
2 answers

Using an embedded OSGi container

I am building some modules which I want to expose as OSGi bundles without any actual dependencies to OSGi libraries. It would seem that this is possible using the declarative services option. However because I'm rather new to OSGi (at least on the…
nablex
  • 4,635
  • 4
  • 36
  • 51
7
votes
1 answer

Making Apache Felix Gogo not open a local console

I am learning Apache Felix to use as my OSGi framework. I want to be able to use the Felix Remote Shell to access my running instance through telnet. The Remote Shell accesses the process through Gogo, as explained on…
John Simmons
  • 461
  • 1
  • 5
  • 10
7
votes
5 answers

Android mkdirs() creates a zero byte file instead of a folder

In my android application, I am trying to create the following folder on the sdcard: /mnt/sdcard/OSGiComponents/admin/felix-cache/ Here's the code: File cacheDir = new File( Environment.getExternalStorageDirectory().getAbsolutePath() + …
Kartik Sankaran
  • 290
  • 3
  • 11
7
votes
3 answers

Using JavaFX 2.2 in OSGi bundle

How can I use JavaFX 2.2 in a OSGi bundle? I'm using Apache Felix so it's no eclispe project. It must run on Mac OSX with Java7 installed (Java6 would be cool but not necessary). I've read something about repacking the jfx libraries but for eclispe…
Christof Aenderl
  • 4,233
  • 3
  • 37
  • 48
7
votes
4 answers

Find the OSGI bundle that exports a package?

How do I find the bundle that exports a package? I am using felix and I have a string like "com.test", how do I know which bundle exports that package? I don't want to use PackageAdmin as it has been deprecated, and I don't really want to get the…
Boomah
  • 1,172
  • 13
  • 24
7
votes
2 answers

Can an OSGi fragment bundle publish a declarative service?

I have a fragment bundle that I created to access some add functionality to a second-party jar. My fragment should register a service to expose this new functionality. It doesn't seem to work. Before I get deep into troubleshooting, I'd like to know…
Chris Dolan
  • 8,905
  • 2
  • 35
  • 73
6
votes
1 answer

Embedding Felix in Tomcat

I am a newbie to OSGi, started using felix. I am at present well versed with the concept of bundles, service etc. I have a requirement where I can embed Felix into Tomcat, I tried googling the same but was unable to find a relevant solution for my…
user838937
  • 61
  • 1
  • 3
1 2
3
61 62