Questions tagged [osgi-ds]

6 questions
23
votes
4 answers

OSGi: Does Blueprint replace Declarative Services?

The new R4.2 spec for OSGi describes the Blueprint service, for dependency injection and service wiring. Does Blueprint replace Declarative Services (which is still part of the spec, as well), or are they intended to work together? Is Blueprint…
Thilo
  • 257,207
  • 101
  • 511
  • 656
4
votes
3 answers

Long lasting Declarative Service activate method

I tried to understand from the OSGi specs what it should happen in case an activate method blocks indefinitely but I did not find an answer. On the other hand, it seams that that Felix SCR has ds.lock.timeout.milliseconds and…
matteo rulli
  • 1,443
  • 2
  • 18
  • 30
2
votes
0 answers

OSGi - Can a service implementation consume other service?

Hello fellow programmers, I recently started working on an OSGi project. I was trying to get used to OSGi services using Declarative Services. I have created an inteface bundle (A), a bundle(B) implementing this interface and a bundle consuming the…
Panos Boc
  • 1,128
  • 1
  • 8
  • 8
1
vote
2 answers

OSGi-DS: Optional reference to required service in DS Component, is not really dynamically updatable

I want to start DS component which has many services are optional, if some service is not up then these component is not getting activated. So I set cardinality of these optional service as Optional so if these optional service is not available then…
Umesh Rajani
  • 139
  • 2
  • 13
0
votes
3 answers

How to handle different @Reference in OSGi DS Component

I'm having a problem with the following situation: The Server is waiting for one or more Functions. When a Function is bound the bindFunction is called. It needs to call doSomething() of any SpecificSystem. When there is no SpecificSystem in my…
Miguel
  • 13
  • 2
0
votes
2 answers

How to create multiple instances of osgi service without using DS annotations

I have created an Osgi service. I want to create a new instance of my service each time the service request comes. Code look likes this - @Component(immediate=true) @Service(serviceFactory = true) @Property(name =…