You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/07/28 09:25:14 UTC

[jira] Created: (FELIX-1414) Service ranking is only obeyed on first component activation

Service ranking is only obeyed on first component activation
------------------------------------------------------------

                 Key: FELIX-1414
                 URL: https://issues.apache.org/jira/browse/FELIX-1414
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR), Specification compliance
    Affects Versions: scr-1.0.8
            Reporter: Felix Meschberger
             Fix For: scr-1.2.0


As of FELIX-950 (released with scr 1.0.8) and FELIX-1213 (not released yet) unary services bindings are replaced if a new service is registered with a higher service ranking than the already bound service.

It has been clarified in the OSGi dev list thread "Questions on DS Spec" [1] that a service once bound is only replaced if it ceaces to be a target either by the service being unregistered of the target filter not matching any longer. Service ranking is only obeyed upon first binding of a service to the component.

To fix we have to revert the fixes for FELIX-950 and FELIX-1213.


[1] http://www.mail-archive.com/osgi-dev@mail.osgi.org/msg00883.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1414) Service ranking is only obeyed on first component activation

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed FELIX-1414.
------------------------------------


SCR 1.2.0 has been released. Close all issues.

> Service ranking is only obeyed on first component activation
> ------------------------------------------------------------
>
>                 Key: FELIX-1414
>                 URL: https://issues.apache.org/jira/browse/FELIX-1414
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions: scr-1.0.8
>            Reporter: Felix Meschberger
>             Fix For: scr-1.2.0
>
>
> As of FELIX-950 (released with scr 1.0.8) and FELIX-1213 (not released yet) unary services bindings are replaced if a new service is registered with a higher service ranking than the already bound service.
> It has been clarified in the OSGi dev list thread "Questions on DS Spec" [1] that a service once bound is only replaced if it ceaces to be a target either by the service being unregistered of the target filter not matching any longer. Service ranking is only obeyed upon first binding of a service to the component.
> To fix we have to revert the fixes for FELIX-950 and FELIX-1213.
> [1] http://www.mail-archive.com/osgi-dev@mail.osgi.org/msg00883.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1414) Service ranking is only obeyed on first component activation

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-1414.
--------------------------------------

    Resolution: Fixed

In Rev. 799629 removed the replacement of bound services for unary references if a service was registered with a higher ranking. As per the discussion on the OSGi list, a service once bound is never replaced unless the service ceases to be a target service (by unregistration or not matching the target any more).

This resolves this issue.

> Service ranking is only obeyed on first component activation
> ------------------------------------------------------------
>
>                 Key: FELIX-1414
>                 URL: https://issues.apache.org/jira/browse/FELIX-1414
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions: scr-1.0.8
>            Reporter: Felix Meschberger
>             Fix For: scr-1.2.0
>
>
> As of FELIX-950 (released with scr 1.0.8) and FELIX-1213 (not released yet) unary services bindings are replaced if a new service is registered with a higher service ranking than the already bound service.
> It has been clarified in the OSGi dev list thread "Questions on DS Spec" [1] that a service once bound is only replaced if it ceaces to be a target either by the service being unregistered of the target filter not matching any longer. Service ranking is only obeyed upon first binding of a service to the component.
> To fix we have to revert the fixes for FELIX-950 and FELIX-1213.
> [1] http://www.mail-archive.com/osgi-dev@mail.osgi.org/msg00883.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.