felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milen Dyankov <milendyan...@gmail.com>
Subject iPOJO and ManagedServiceFactory
Date Mon, 13 Oct 2014 10:02:08 GMT
can someone point me to an example of using ConfigAdmin's
ManagedServiceFactory with iPOJO components, please?

The reason I'm asking is, what the docs  (

 For each (public) component type, a ManagedServiceFactory is published.
> For each configurations matching with the component type from the
> Configuration Admin, a new component instance is created.

does not seem to work for me (iPOJO 1.12.0 in Karaf 3.0.1). No matter what
I do, I can't get a "org.osgi.service.cm.ManagedServiceFactory" registered
for my component.

iPOJO will register "org.osgi.service.cm.ManagedService" for the component
if I provide "managedservice = ..... " in the @Component and @Instantiate
it! In such case I can indeed use ConfigAdmin to configure the instance.

However I couldn't figure out how to instruct iPOJO to register a  "
ManagedServiceFactory" so that I can later on create new component
instances from ConfigAdmin. Am I misinterpreting the docs? Missing
something obvious?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message