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

Antoine DESSAIGNE commented on CAMEL-7916:
------------------------------------------

I was wondering, should the name be resilient among the calls of 
findByTypeWithName ? If you add or remove something that implements what you 
looking for then the names will change. Thus maybe you can use 
System.identityHashCode for the suffix of the service.

> OsgiServiceRegistry forces name property
> ----------------------------------------
>
>                 Key: CAMEL-7916
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7916
>             Project: Camel
>          Issue Type: Bug
>          Components: osgi
>    Affects Versions: 2.14.0
>            Reporter: Benjamin Graf
>            Assignee: Willem Jiang
>             Fix For: 2.13.3, 2.14.1, 2.15.0
>
>
> Several components does search the registry by calling findByTypeWithName. 
> This method needs in OsgiServiceRegistry that every service has a name 
> property which is not forced by spec and therefor optional. Maybe add a 
> different "name" in those cases.



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

Reply via email to