camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Läubrich (JIRA) <>
Subject [jira] [Created] (CAMEL-11876) OsgiCamelContextPublisher might leak Service-References
Date Tue, 03 Oct 2017 09:49:00 GMT
Christoph Läubrich created CAMEL-11876:

             Summary: OsgiCamelContextPublisher might leak Service-References
                 Key: CAMEL-11876
             Project: Camel
          Issue Type: Bug
          Components: osgi
            Reporter: Christoph Läubrich

OsgiCamelContextPublisher holds a Map of Service-References in its doShutdown method this
map is cleared.

This could lead to problem when there are still items in the map.

Instead of clearing the map, it should be iterate+remove

Iterator<ServiceRegistration<?>> it = registrations.values().iterator();
    	while (it.hasNext()) {;

This message was sent by Atlassian JIRA

View raw message