|
|
|
| Re: Configuration bundles for managed service factory [message #1006735 is a reply to message #1006622] |
Fri, 01 February 2013 11:16  |
Dmitry Sklyut Messages: 252 Registered: January 2010 |
Senior Member |
|
|
Marco,
I posted reply in the thread that you reference, but I will also reproduce it here.
ManagedServiceFactory must be registered with service.factoryPid not service.pid.
You can see examples in http://static.springsource.org/osgi/docs/2.0.0.M1/reference/html/compendium.html#compendium:cm section 11.1.3
<osgix:managed-service-factory factory-pid="de.zivit.ccn.csi.api.factoryConnectionSpec"
interface="de.zivit.ccn.csi.api.ConnectionSpec"
update-strategy="container-managed">
<bean class="de.zivit.ccn.csi.api.MutableConnectionSpec"/>
</osgix:managed-service-factory>
// manual registration of ManagedServiceFactory
// connectionspecfactory must implement ManagedServiceFactory interface
<bean id="connectionSpecFactory" class="de.zivit.ccn.csi.api.ConnectionSpecFactory" />
<osgi:service interface="org.osgi.service.cm.ManagedServiceFactory" ref="connetionSpecFactory">
<osgi:service-properties>
<entry key="service.pid" value="de.zivit.ccn.csi.api.factoryConnectionSpec"/>
</osgi:service-properties>
</osgi:service>
Let me know if that helps, or please post an example of your config and I will be able to help further.
Thanks
Dmitry
|
|
|
Powered by
FUDForum. Page generated in 0.01664 seconds