[
https://issues.apache.org/jira/browse/FELIX-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger resolved FELIX-832.
-------------------------------------
Resolution: Fixed
Fix Version/s: scr-1.0.8
Moved the call to the ungetService method in Rev. 741593, so that service
unbinding does not depend on the presence of an unbind method anymore.
Actually, this problem might also be present if services are not bound by a
bind method but are accessed by locateService. In this case the service must
also be ungotten in case of its unregistration
I have deployed SNAPSHOT version 1.0.7-20090206.153010-1 containing this fix.
Could you please verify its working in your use case and close the bug then ?
Thanks.
> Bind method not invoked when the unbind method is unspecified after reference
> is changed
> ----------------------------------------------------------------------------------------
>
> Key: FELIX-832
> URL: https://issues.apache.org/jira/browse/FELIX-832
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.0.6
> Environment: Felix 1.2.1
> Reporter: Joao Assuncao
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: scr-1.0.8
>
>
> I have a declarative service with a dynamic reference with cardinality 0..1,
> and since I'm not interested in the unbind notification I did not specified
> the unbind method.
> I noticed that Felix (1.2.1) invokes the bind method the first time, but it
> does not invoke it when the reference is changed. After I add a unbind method
> it works as expected.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.