Hi Neil/Phil,
Thx for this response, in my project i'm using a lot DS Component
Factories, and i've experience some
problems in integrating it with ConfigAdmin.
My requirements is to use ComponentFactories to create components when
some sort of deployment descriptor
appear in some folder.
I've basically write a simple OSGi service that keep monitored a
particular folder and then use anothre so called
"Deployment Service" to manage my components ( creating, destroying,
updating).
Phil my project is open-source so you could freely look at the way i've
managed this, feel free to ask me
if you need.
Andrea
Il 11/03/2010 13:38, Neil Bartlett ha scritto:
Phil,
ConfigAdmin and DS Component Factories do not work together. You are
required to programmatically call newInstance() yourself. However it
should be possible to build a bridge from a ComponentFactory to a
ManagedServiceFactory.
ManagedServiceFactory is not deprecated.
Regards
Neil
On Thu, Mar 11, 2010 at 12:30 PM, Philipp Kursawe
<[email protected]> wrote:
Hello,
someone out there that can explain me how the ConfigAdmin and DS
Component Factories work together?
I was under the impression that each factory configuration created
will invoke the newInstance method of the DS component factory?
Or do I have to create the instances myself programmatically?
What properties have to be set in the factory configuration to provoke
a creation of a new instance with that factory? Do I need to set the
service.factoryPid to the id of the factory?
There seem to be no tutorials out there when or how to use the DS
component factory. Only for the deprecated (?) ManagedServiceFactory.
Thanks,
Phil
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev