[
https://issues.apache.org/jira/browse/CXF-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640153#action_12640153
]
Sergey Beryozkin commented on CXF-1870:
---------------------------------------
Should it rather be
void findService(String interfaceName, String filter, FindServiceCallback
callback);
rather than
registerListener(ServiceListener) ?
when ServiceTracker is started locally, we'll have ListenerHook.added() called.
t this momnet of time we know the interface name being looked up. so it's
natural to go a findService async call.
If we however register a (Discovery) ServiceListener with the DiscoveryService
then how do we associate this ServiceListener callback with the actual
(ServiceTracker) request ? We may end up creating proxies before any client
bundle even asled for them
> DOSGi should register a listener to the discovery services
> ----------------------------------------------------------
>
> Key: CXF-1870
> URL: https://issues.apache.org/jira/browse/CXF-1870
> Project: CXF
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 2.2
> Reporter: David Bosschaert
>
> Currently the following case doesn't work:
> 1. Register a ServiceTracker for a service (one that will be satisfied by a
> remote one).
> 2. Register the remote service (e.g. by publishing it into discovery)
> Now we don't pick up this new service, which should be provided through the
> ServiceListener callback.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.