You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alin Dreghiciu (JIRA)" <ji...@apache.org> on 2008/12/23 03:17:44 UTC
[jira] Commented: (FELIX-862) Services not unregistered on
component deactivation
[ https://issues.apache.org/jira/browse/FELIX-862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658728#action_12658728 ]
Alin Dreghiciu commented on FELIX-862:
--------------------------------------
This may be related to the NPE from FELIX-861.
> Services not unregistered on component deactivation
> ---------------------------------------------------
>
> Key: FELIX-862
> URL: https://issues.apache.org/jira/browse/FELIX-862
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Environment: Felix 1.4.0, SCR 1.0.6
> Reporter: Alin Dreghiciu
>
> Situation (is about Pax Shell using SCR):
> Bundle 1:
> <component name='org.ops4j.pax.shell.threadio.internal.ThreadIOImpl'>
> <implementation class='org.ops4j.pax.shell.threadio.internal.ThreadIOImpl'/>
> <service>
> <provide interface='org.osgi.service.threadio.ThreadIO'/>
> </service>
> </component>
> Bundle 2:
> <component name='org.ops4j.pax.shell.runtime.internal.CommandProcessorImpl'>
> <implementation class='org.ops4j.pax.shell.runtime.internal.CommandProcessorImpl'/>
> <service>
> <provide interface='org.osgi.service.command.CommandProcessor'/>
> </service>
> <reference name='threadIO' interface='org.osgi.service.threadio.ThreadIO' bind='setThreadIO' unbind='unsetThreadIO'/>
> If both bundles are started bundle 2 exports a CommandProcessor service. This is correct.
> If I stop bundle 1, I expect that bundle 2 would unregister the CommandProcessor service. But this is not the case, as service is still exported
> If after the bundle 1 was stopped I stop the bundle 2 and start bundle 2 again, the service CommandProcessor is indeed not exported (as bundle 1 is not started so there is no ThreadIO service).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.