[
https://issues.apache.org/jira/browse/DOSGI-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15644603#comment-15644603
]
Christian Schneider commented on DOSGI-122:
-------------------------------------------
I just looked into the FindHook interface.
https://osgi.org/javadoc/r4v42/org/osgi/framework/hooks/service/FindHook.html
I am not sure if this would work for us. We would need to add the filter to the
TopologyManagerImport.addServiceInterest but we can add any new service to the
services being returned.
So the first find would always not include the remote services.
Another problem is that we can add the interest but how would we remove it
again?
If there is not solution to this I will close with Wont Fix.
> CXF DOSGi does not work with ctx.getServiceReferences()
> -------------------------------------------------------
>
> Key: DOSGI-122
> URL: https://issues.apache.org/jira/browse/DOSGI-122
> Project: CXF Distributed OSGi
> Issue Type: Bug
> Components: Discovery
> Affects Versions: 1.4.0
> Reporter: David Bosschaert
> Fix For: 2.1.0
>
>
> CXF-DOSGi doesn't find a remote service is the lookup is done with the
> following OSGi API:
> bundleContext.getServiceReferences()
> However it does work fine when using a ServiceTracker.
> This is probably caused by a missing FindHook (see the OSGi Core
> Specification, Service Hooks chapter).
> We also need to make sure that getServiceReference() and
> getAllServiceReferences() works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)