Created: (CXF-1870) DOSGi should register a listener to the discovery services

View: New views
5 Messages — Rating Filter:   Alert me  

Created: (CXF-1870) DOSGi should register a listener to the discovery services

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.


Commented: (CXF-1870) DOSGi should register a listener to the discovery services

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/CXF-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640117#action_12640117 ]

Sergey Beryozkin commented on CXF-1870:
---------------------------------------

Yea, at the moment a client bundle needs to be installed only after the server bundle has been handled.
is it a show-stopper ?

> 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.


Commented: (CXF-1870) DOSGi should register a listener to the discovery services

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ 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.


Assigned: (CXF-1870) DOSGi should register a listener to the discovery services

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/CXF-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert reassigned CXF-1870:
-------------------------------------

    Assignee: Eoghan Glynn

> 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
>            Assignee: Eoghan Glynn
>
> 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.


[jira] Resolved: (CXF-1870) DOSGi should register a listener to the discovery services

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/CXF-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert resolved CXF-1870.
-----------------------------------

    Resolution: Duplicate

This issue is superceded by CXF-2427

> 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
>            Assignee: Eoghan Glynn
>
> 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.