aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1314) Update service reference when service with higher ranking gets registered
Date Wed, 29 Apr 2015 11:47:06 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519175#comment-14519175
] 

Christian Schneider commented on ARIES-1314:
--------------------------------------------

That text was also the only thing I found. So while it says we have to unget the service if
it is lost it does not forbid that we change the service.
I tested to remove the check in org.apache.aries.blueprint.container.ReferenceRecipe.track.
Our own build works fine with it. 

I never did a tck run. Is there some description, how to do it?


> Update service reference when service with higher ranking gets registered
> -------------------------------------------------------------------------
>
>                 Key: ARIES-1314
>                 URL: https://issues.apache.org/jira/browse/ARIES-1314
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>            Reporter: Jochen Kraushaar
>            Assignee: Christian Schneider
>
> Consider the following scenario:
> Bundle X uses the service defined by API Bundle A. 
> Bundle A1 implements A and has a service ranking of 1. 
> Bundle A2 implements A and has a service ranking of 10.
> The bundles get started in the following order: A, A1, X, A2
> In the current implementation X will use A1 till e.g. A1 gets stopped and started again
- according to [~chris@die-schneider.net] in this post: http://karaf.922171.n3.nabble.com/Karaf-3-0-1-does-not-consider-service-ranking-set-by-Blueprint-tp4039991p4040041.html
> I propose that X switches from A1 to A2 when A2 gets registered as A2 has a higher service
ranking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message