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

Using Felix Dependency Manager to create Configuration Dependeny

I'm trying to get the FelixDependencyManager working. I'm using Karaf 3 and i'm testing with 2 Bundles, one to provide the configuration information and one implementing the ManagedService-Interface and depending on this information. So everything…
0
votes
2 answers

org.apache.felix.ipojo.ComponentFactory cannot be cast to org.apache.felix.ipojo.Factory

I have a bundle component, package ipojo; import ipojo.service.Hello; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Invalidate; import org.apache.felix.ipojo.annotations.Provides; import…
0
votes
1 answer

Using System.out in Osgi?

I am using bndtools and trying to get a "Hello World" running. How do I use jdk functionality? The bndtools website only explains how to export an API, which is nice and all, but somehow I need to use jdk functionality in order to program anything,…
Blub
  • 13,014
  • 18
  • 75
  • 102
0
votes
1 answer

IPOJO - The factory associated with the component type is invalid (not started or missing handlers)

I am trying to learn how to use Felix iPOJO API to create components dynamically. I have a simple bundle with the following files: 1- HelloService.java (Contains a Service Interface). /* * @author zaid almahmoud * */ package…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
0
votes
0 answers

Error when import org.osgi.util.tracker.ServiceTracker

I have a OSGi project and I am using Maven. In a bundle I need to import org.osgi.util.tracker.ServiceTracker, but for some inexplicable reason Netbeans keep telling me that package org.osgi.util.tracker does not exist. But it does. See this…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
0
votes
1 answer

Dynamic OSGi service replacement as development aid

We are using Apache Felix annotations to handle all the OSGi stuff in our application. I have a provider class that talks to a server. I have a consumer class that does stuff with data from the server. What I want is to create another provider…
user2644532
  • 39
  • 1
  • 4
0
votes
1 answer

Apache Felix File Install is not working

I have downloaded org.apache.felix.main.distribution-4.2.1. It is working. Now i want to use org.apache.felix.fileinstall-3.2.6.jar. I have downloaded it and put the jar File (File Install) into the Bundle Folder of Felix. When I start Felix, File…
A. Janik
  • 49
  • 1
  • 4
0
votes
1 answer

Deploy bundle from a bundle

I want to start OSGI bundle from a OSGI bundle. As you can see this code starts bundle by deploying it from a directory: private void installStartBundle(BundleContext bc, String location, String name) throws BundleException { …
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

Call JDBC and UCP connection from OSGI bundle

I have a specific question about calling initializing JDBC and UCP connection into byndle activator. I created this activator: public class Activator implements BundleActivator { @Override public void start(BundleContext bc) throws…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
2 answers

Address already in use error when Apache Felix starts

I deleted the directory felix-cache. When I started again the Felix framework I get this error: ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

Apache Felix bundle with Android GUI

How can I create an OSGi bundle which I can inject in an Apache Felix container running on an Android devices which opens a GUI? I am not interested in the details about converting a normal bundle to an Android bundle [1]. It's more like this…
Jack Miller
  • 6,843
  • 3
  • 48
  • 66
0
votes
1 answer

How To Get Current Jackrabbit User In Felix Request Filter?

I need to get current jackrabbit/session user when a request filter does filter. I've implemented filter class as my past question
Babak Behzadi
  • 1,236
  • 2
  • 16
  • 33
0
votes
1 answer

Using android API in APK Bundle gives: "Could not find class 'android.content.Context', referenced from method com.example.patient.Activator.start"

I am embedding OSGI framework into Android application. Beside my android application, I have an APK bundle that I create using the following steps: Create a regular APK, for example by creating Eclipse Android Project. Make your bundle use the…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
0
votes
2 answers

How to convert MigLayout for JavaFX to an OSGi bundle so it will work inside an OSGi container?

I'm trying to make an OSGi bundle that is a GUI written in JavaFX. My setup is as follows: OS name: "linux", version: "3.8.0-25-generic", arch: "amd64", family: "unix" Java version: 1.7.0_45, vendor: Oracle Corporation Apache Maven 3.1.1…
axiopisty
  • 4,972
  • 8
  • 44
  • 73
0
votes
1 answer

what's the difference between init() and start() method in apache.felix.dm package?

I am now researching on the Opendaylight project (an open-source SDN controller project leaded by Cisco), and discovered that the project uses resources from apache.felix.dm package to dynamically manage the service dependencies on equinox (an OSGi…
Jay Wang
  • 3
  • 1
  • 2