Bram Pouwelse created FELIX-5274:
------------------------------------
Summary: remove callback fails after manually removing dynamic
dependencies
Key: FELIX-5274
URL: https://issues.apache.org/jira/browse/FELIX-5274
Project: Felix
Issue Type: Bug
Components: Dependency Manager
Affects Versions: org.apache.felix.dependencymanager-r8
Reporter: Bram Pouwelse
When dynamic instance bound dependencies are removed in the component destroy
dm fails to call the remove callback.
I use an adapter service like
{code}
manager.add(createAdapterService(ApplicationService.class, null, "onAdd",
"onChange", "onRemove")
.setInterface(Servlet.class.getName(), null)
.setImplementation(WinkServlet.class)
.setCallbacks("dmInit", "dmStart", "dmStop", "dmDestroy")
);
{code}
In the WinkServlet init callback an additional dependency is added and this is
removed in the destroy callback. When the component is removed I get log
messages like
{code}
ERROR org.amdatu.web.rest.wink - [main] "onRemove" callback not found on
component instances []
{code}
[http://www.mail-archive.com/users%40felix.apache.org/msg17300.html]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)