[
https://issues.apache.org/jira/browse/ARIES-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Przybysz closed ARIES-17.
---------------------------------
Closing issues of released artifacts
> ServiceHelper registry lookup problems
> --------------------------------------
>
> Key: ARIES-17
> URL: https://issues.apache.org/jira/browse/ARIES-17
> Project: Aries
> Issue Type: Bug
> Components: JNDI
> Reporter: Jarek Gawor
> Assignee: Alasdair Nottingham
> Priority: Major
> Fix For: 0.1
>
>
> 1) ServiceHelper is using getAllServiceReferences() to get a list of services
> on the client's bundle context. That can return services which might be
> incompatible with the bundle classloader. I think the getServiceReferences()
> should be used instead.
> 2) The context.lookup("osgi:services/<interface>") should return a best
> ranking service registered with that interface. However, the
> ServiceHelper.getService() function seems to return a first service that it
> finds.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)