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

Avoid copying some packages to OSGi Bundle

I want to exclude some packages from copying when creating an OSGi bundle using maven bundle plugin. I used !package name in the export section. But since I'm using @openejb-core-${openejb.version}.jar!/**, in the include-resource section that…
0
votes
3 answers

OSGi - should I create service tracker for every bundle?

I have 10 bundles (A,B,C..). And in bundle A I want to create service tracker to track those services which implement some interface. These osgi services can be in any bundle (A,B,C..). I thought that I should create one service tracker and start…
user2022068
0
votes
0 answers

Freetts javax.speech.EngineException

I am using converting text to Speech to send to my SIP application. I keep getting this Error javax.speech.EngineException: javax.speech.Central: no class found for com.sun.speech.freetts.jsapi.FreeTTSEngineCentral at…
gourig
  • 81
  • 1
  • 11
0
votes
1 answer

How to connect to osgi framework (felix)

I use apache felix and I want to connect osgi framework and to control it - in particularly to stop. By other words I have application A (osgi based) and application B. I want from B to connect to running A and stop osgi. I suppose felix must…
user2022068
0
votes
1 answer

Can I reference ResourceResolver?

I have this Filter: @SlingFilter(description="", vendor="", order=10) class MyFilter extends DoNothingFilter { @Reference private ResourceResolver; } When I am building with this @Reference line my bundle is not containing attached filter…
Dawid Pura
  • 991
  • 9
  • 32
0
votes
1 answer

Osgi bundle cannot find osgi service

I have 2 osgi bundles (say A and B) running in Jboss Fuse. I am using Felix. 'A' bundle exposes a service which 'B' bundle uses. When I deploy both these bundles there is no problem. When I execute osgi:ls -u, I see that bundle 'B' is using…
Rajjy
  • 176
  • 13
0
votes
1 answer

karaf-felix custom distribution using maven

I am currently deploying maven managed bundles into the felix framework and I want to create a maven project for the deployment process and want to automate all the process using maven plugins. Using maven-dependency-plugin we can somehow automate…
megamoth
  • 695
  • 2
  • 12
  • 27
0
votes
2 answers

Deploy a bundle to Apache Felix via Ant?

Let's suppose I have a valid Ant build script which packs up and prepares my OSGi bundle. Now, I would like to make the build process install/update the bundle to my local Felix installation as the last step, and - if possible, automatically start…
Milan Aleksić
  • 1,415
  • 15
  • 33
0
votes
1 answer

Download maven dependency as a single .jar with it's dependencies included inside

How to download mvn dependency as a single jar with it's dependencies embedded inside ? My use case: Downloading(org.apache.felix.http.servlet-api:1.1.0) and then copying it into a folder. From MVN…
Peter
  • 689
  • 2
  • 8
  • 20
0
votes
1 answer

OSGi - get bundle filename (*.jar)

Let's suppose I have Bundle bundle=...; Can I get this OSGi bundle's filename? I've searched but didn't find anything. The only thing I can do now is to get bundle symbolic name via headers, but it's not filename as symbolic name is set in manifest…
user2022068
0
votes
1 answer

OSGi + Weld: FrameworkUtil getBundleContext() returns null

I use Apache Felix and weld and I have two classes: @ApplicationScoped class A { private B b= new B(); } class B { private void foo(){ BundleContext bc= FrameworkUtil.getBundle(this.getClass()).getBundleContext(); } } Object is class A…
user2022068
0
votes
1 answer

Running weld osgi example with felix on java se

I want to do the following solution:Apache Felix + Weld 2.2.10.SP1 for Java SE. For that I want to run one of examples from weld archive - weld-osgi-paint. I use felix 4.6.1, java8 and I have the following bundles which I install and…
user2022068
0
votes
1 answer

Apache felix and org.osgi for weld cdi - constraint violation

I want to do the following solution:Apache Felix + Weld for Java SE. For that I want to run one of examples from weld archive - weld-osgi-paint. For now I have the following bunle…
user2022068
0
votes
2 answers

Jersey Endpoint+OSGi Dependency, Keeping Track

I have a Jersey endpoint which uses a custom OSGi Service ExceptionManager Service. @Path("service") public class ServiceFacade { private volatile ExceptionManager exceptionManager; public ServiceFacade() { BundleContext bC =…
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
0
votes
1 answer

Amdatu JPA (bndtools, felix DM) not resolving DataSource service

So I was loosely following the Amdatu JPA video tutorial and I almost got it working... At a glance everything seems to be fine, only DataSource service is not resolved and I don't know why. It seems to me that it is registered. So how would I go…