Questions tagged [felix-dependency-manager]

The Dependency Manager provides a compact and versatile Java API that allows you to declaratively and programmatically register, acquire, and manage dynamic OSGi components.

http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager.html

19 questions
4
votes
1 answer

Failed to execute goal (generate-scr-scrdescriptor) on project Unable to load compiled class

Have any one faced below error. why it causes.? am using the below version of plugins. org.apache.maven.plugins maven-compiler-plugin 3.2
VAr
  • 2,551
  • 1
  • 27
  • 40
2
votes
1 answer

How to bind dynamic reference based on configuration?

I have following consumer component that uses a reference service called sender, @Component(configurationPolicy = ConfigurationPolicy.REQUIRE, configurationPid = DATA_SYNC_CONFIG) public class DataSynchronizer { @Reference …
Channa
  • 3,267
  • 7
  • 41
  • 67
2
votes
1 answer

Apache Felix stop method is not called when using dmlambda

We’ve encountered an issue with DM Lambda (1.1.1) where a bundle’s stop method is not being called when the bundle is stopped. I have an executable jar that contains a simple example of this issue. The example contains two custom bundles, one is…
2
votes
1 answer

Accessing BundleContext with Felix dependency manager

I am using Apache Felix dependency manager in my project. In the service activation method @org.apache.felix.dm.annotation.api.Start public void activate() { // Need BundleContext here } I need an access to BundleContext or Bundle. How can I…
user1278890
  • 643
  • 8
  • 22
2
votes
1 answer

Jitsi include external jar for customization

Currently I am working on customization of Open Source Jitsi. And Somehow, I want to add 3rd party jar for customization. I tried a lot to include 3rd party jar but I am facing this error. So please help me to get rid of this error or provide some…
Darshit
  • 361
  • 2
  • 13
2
votes
1 answer

OSGi Felix Dependency Manager Annotations and abstract classes

In a Dependency Manager based component model i'm trying to tuck away all the boilerplate of my components into Base classes. I have everything wired up in eclipse+bndtools and can successfully push @Init, @Start, @Stop into my base class but when I…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
1
vote
1 answer

Enable Apache Felix Web Console to show more than 100 logs

We are using the Apache Felix Web Console to display active bundles, configurations and logs. However, it would be very nice to be able to display more than just the default 100 log entries. Is there a way to configure the console in such a way? I…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
1
vote
1 answer

How to force (to 1.2.0) OSGi XMLNS for OSGi R7 Metatype annotations

I am updating a project to OSGi R6 Annotations (I have constraints running OSGi R7 due to my the dependencies deployed to my container) and have run into a problem where my old Apache Felix SCR annotation had dashes in them, which is not possible…
empire29
  • 3,729
  • 6
  • 45
  • 71
1
vote
0 answers

Felix and OSGi - How to specify Parent and Abstract Classes

I am using Apache Felix with BluePrint for the Dependency configuration. I have a usecase where Abstract Parent and Child classes are involved. How the dependancy is mapped in the Blueprint for these classes. i am not able to see the Abstract &…
Aksanth
  • 269
  • 2
  • 13
0
votes
2 answers

OSGI Service visibility/DS annotation component injection

I have a service instantiated by Apache Felix Dependency Manager, because I need to use a factory method to return the implementation: manager.add( manager.createComponent() .setInterface(aServiceName, new Properties()) …
0
votes
1 answer

OSGi AspectService get Service Properties of the Aspected Service

Given a service Sender with properties, and an aspect service LogSender, how does LogSender get the service properties of the current Sender? I'd like to add a property to optionally log the data that a specific Sender is sending.…
Rob Paisley
  • 437
  • 1
  • 3
  • 13
0
votes
1 answer

OSGi injection of dependencymanager

I am trying to inject the DependencyManager into my component. The BundleContext is injected but the DependencyManager is not (@Inject). What am I doing wrong? import org.apache.felix.dm.DependencyManager; import…
OblongZebra
  • 466
  • 5
  • 16
0
votes
1 answer

Stopping an OSGi Bundle created using Felix Dependency Manager at startup time

We use Felix as our OSGi framework and Felix Dependency Manager for managing our OSGi Components. We have a situation where we load and validate an XML in the start method of the component. If the validation of the XML against the schema fails, we…
Hari
  • 163
  • 1
  • 1
  • 5
0
votes
1 answer

OSGI un used Import packages make as optional

Am trying to create an aem workflow java process step, adding the below dependency in the pom.xml file dependencies list once i add the bundle build is fine but it is in Installed state only because of the below two errors.
krish
  • 469
  • 1
  • 15
  • 34
0
votes
2 answers

Efficient way of building an OSGi distribution with maven

First of all, I'm a beginner with OSGi/Maven and I am studying how can I work efficiently with these tools (for the moment, I forecast to use Felix as my OSGi implementation) I would like to create a project based on many bundles. Of course,…
1
2