You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2019/05/24 06:59:00 UTC

[jira] [Assigned] (CAMEL-11877) OsgiServiceRegistry might use stale Services

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

Jean-Baptiste Onofré reassigned CAMEL-11877:
--------------------------------------------

    Assignee: Jean-Baptiste Onofré

> OsgiServiceRegistry might use stale Services
> --------------------------------------------
>
>                 Key: CAMEL-11877
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11877
>             Project: Camel
>          Issue Type: Improvement
>          Components: osgi
>            Reporter: Christoph Läubrich
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> OsgiServiceRegistry uses raw ServiceReferences to obtain a Servie Object. Once the Object is fetched it is cached and reused. THis can lead to the state, that cmael uses outdated services (e.g. the service get updated/replaced).
> To prevent this, Camel should use ServiceTracker instead, this would make fetching services much more easier and roboust because ServiceTracker will handle all the dynamic parts and can simply be queried for a Service.
> The ServiceTraker Objects itself can then be cached and simply closed onContextStop



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)