Questions tagged [ipojo]

iPOJO is a service component runtime designed for OSGi application development

Apache Felix iPOJO is a service component runtime aiming to simplify OSGi application development. It natively supports ALL the dynamism of OSGi. iPOJO is made to run the modern applications exhibiting modularity and requiring runtime adaption and autonomic behavior.

66 questions
7
votes
1 answer

Using OSGi and Apache Felix iPOJO with JDK 11

I have a project that is built around OSGi and iPOJO and I'm trying to determine if it will still work with JDK 11. It's currently using JDK 8. It's not looking too hopeful since the latest version of iPOJO (1.12.1) was released in 2014. After…
AHalbert
  • 316
  • 5
  • 23
4
votes
1 answer

iPOJO: difference between @ServiceProperty and @Property

What's the difference between "service property" and "property" at http://felix.apache.org/site/how-to-use-ipojo-annotations.html#HowtouseiPOJOAnnotations-@ServiceProperty?
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
3
votes
1 answer

How to do iPOJO instantiation

I am having some problems understanding the concept of component instantiation in iPOJO. I read this guide and I get the analogy to classes and objects but I still have some concrete problems and some conceptual problems that I hope someone can…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
3
votes
2 answers

Intra- and inter-bundle mutual dependencies in OSGi component models

In my current application, I've run into this pattern in a couple of places: I have two service interfaces in a single bundle which do different but related jobs. interface Service1 { ... } interface Service2 { ... } and want to have singleton…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
2
votes
1 answer

Use Felix File install to create multiple iPojo bundle instances

I am trying to deploy an iPojo bundle with a property. The bundle looks like this: @Component public class Greeter { @Property(name = "greeting") private String greeting; @Validate public void start() { …
mapf
  • 496
  • 1
  • 5
  • 21
2
votes
1 answer

Managing transactions in iPOJO

I define a transaction is a set of continuous activities (one method or set of methods) in a component. I wrote a simple example as follows: //service interface public interface Hello { String sayHello(String name); String sayBonjour(String…
HNT
  • 147
  • 1
  • 10
2
votes
0 answers

OSGi: Instance unnamed of type X is not bound

I'm currently facing a problem I'm just not able to solve. Hopefully you can help me. I'm creating a modular Vaadin application with Apache Felix and iPojo. The dependencies are resolved but when starting the application, Felix tells me the…
Kenneth K.
  • 53
  • 4
2
votes
0 answers

InstanceManager leaking while using iPojo factories

I have a OSGi Java 8 project running with iPojo 1.12.1 I use Factories to create InstanceManager via the createComponentInstance method. Once I'm done with the InstanceManager I call dispose on it. I would expect the memory to be released, but the…
jct
  • 84
  • 5
2
votes
3 answers

OSGI application using IPOJO

I am new in programming OSGI application I have successfully use KNOPFLERFISH and felix gogo but my supervisor ask me to use IPOJO, what is the difference between IPOJO and the others? Would you help me to start!
mina
  • 1,872
  • 1
  • 15
  • 20
2
votes
1 answer

iPOJO Component injection callbacks are not invoked unless validate back is added

My iPOJO component's injection callbacks are not getting invoked unless I add the validate callback method. import javax.swing.DefaultBoundedRangeModel; import org.apache.felix.ipojo.annotations.*; import…
Smith
  • 171
  • 2
  • 8
2
votes
1 answer

iPOJO Components instantiated but no visible output

I have 2 iPOJO Components. 1- A Provider bundle that provides "Hello" service. Below is the implementation of the component: package helloipojo; import helloipojo.service.HelloService; import org.apache.felix.ipojo.annotations.Component; import…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
2
votes
1 answer

iPOJO - NullPointer when using injected service

I have defined a service: public interface TimeProvider { int getCurrentTime(); } And an implementation: @Component @Provides @Instantiate public class FooTimeProvider implements TimeProvider { ... } In another class (actually an…
Tim
  • 21
  • 2
2
votes
1 answer

Publish non-@Instantiate OSGi service with iPOJO

I have OSGi modular system in which i have the following components: Some specific protocol instance implementation, which represent a connection via specfic protocol to the specific server (instantiated per connection service) Some specific…
Alexander Tumin
  • 1,561
  • 4
  • 22
  • 33
2
votes
2 answers

Felix lists OSGI Bundle as Active but Gogo Shell Command Not accessible (dependency related)

This basic code succeeds at making the command scopeA:test accessible in the shell: package com.A; import org.apache.felix.ipojo.annotations.Component; import org.apache.felix.ipojo.annotations.Instantiate; import…
user1991839
  • 1,993
  • 2
  • 14
  • 11
1
vote
1 answer

IPOJO Component is not exposing service properly

i have ipojo component like @Component(immediate = true) @Provides public class MyComponent implements MyService { @Override public boolean islock() { return true; } } when i deploy in karaf with below command bundle:install…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
1
2 3 4 5