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
0
votes
1 answer

Exposing osgi service as JAX-RS using apache cxf

Can somebody provide me a simple example to expose a Restful service using apache cxf in an osgi bundle deployed on apache felix. We do not have the option to use Apache Karaf or any other application server. Also , we plan to use iPojo for…
ash123
  • 197
  • 1
  • 3
  • 10
0
votes
2 answers

How to get an iPojo factory based on the interface it provides

If I want to have a service injected in iPojo using method injection I need to do @Bind public void bindService(MyService implementation) { } Based on the type of the argument it knows which impl to inject just based on the interface. If there are…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
0
votes
1 answer

Sleep a iPOJO component, all disable

I have a simple question relating to iPOJO. When a component iPOJO sleeps, all remaining components will also disable although there are not dependencies between them. Why? Here's an example: Component 1: @Component(name="frame1",…
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

Data transmission during ipojo reconfiguration

I have a problem relating data transmission between ipojo components during reconfiguration. Here's an example: A component Calcul_1 provides a calculation service to return a value (a+b) (ex: f(a,b)=> (a+b)) A component Calcul_2 provides a…
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

Can't bind service with filter of requiring component which includes more dependencies in iPOJO

I have 3 component (A,B,C) providing services (As,As,Cs) (A and B implement the same (As) service). and 1 component (E) requiring service. The component class of E, i declared: @Component @..... class E { @requires As dep1, } I have a…
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

Change dynamically "from" in iPOJO metadata

I have a problem relating to iPOJO, as example: I define and deploy a component A which provide a “HelloService” service (interface). And an instance of component A named “instance_A” I define also a component B requiring “HelloService” service in…
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

iPOJO and connection between component ipojo

I have an example relating my problem. (files joint: https://drive.google.com/file/d/0B8ThLrV6-uchaFlTZTNGQ1FnT1E/view?usp=sharing ) I have 3 ipojo components (3 bunbles): CallHello uses a DelayService service which implemented in both HelloDelay…
HNT
  • 147
  • 1
  • 10
0
votes
1 answer

IPOJO logging warning when shutting down

When the application is shutting down and some @Requires services are shutdown, ipojo is logging an exception "The dependency is not optional, however no service object can be injected in A" public class Main { @Requires(id = "A", proxy =…
AdrianS
  • 1,980
  • 7
  • 33
  • 51
0
votes
1 answer

Rename instance in IPojo

Is there any way to rename an iPojo instance? I am using a factory to construct instances so in the argument of createComponentInstance I pass a name property with the name of the instance. But at runtime, once the instance starts running I will be…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
0
votes
1 answer

Getting the service specification and the service filter of an OSGI reference

Let's say I have an OSGI Bundle that contains the class X. Let's say this class contains an OSGI reference to a specific service. Something like this: ServiceReference[] references = context.getServiceReferences…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
0
votes
1 answer

iPOJO @Requires is null

When I use the iPOJO and the @Requires annotation it is not injected into the consumer. Consumer: @Component @Provides @Instantiate @Content(name = "bean") public class BeanContentHandler extends ContentHandler { @Requires private…
KJQ
  • 447
  • 1
  • 7
  • 28
0
votes
1 answer

Using iPOJO API shows " Cannot create a POJO instance, the POJO constructor cannot be found"

iPOJO API seems complicated to deal with, especially when embedding OSGI framework. After getting done with the class loader issues by keeping the API coding lines in an OSGI bundle, I am here having a new different issue: In my bundle start method,…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
0
votes
1 answer

How to get an iPOJO component instance configuration?

I have an iPOJO Component Instance that I create like this: Dictionary dic = new Hashtable(); dic.put("target-name", finalHelloInstanceName); ComponentInstance x= factory.createComponentInstance(dic); Inside my component that I am…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
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

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