You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Alan Cabrera (JIRA)" <ji...@apache.org> on 2010/06/07 07:37:55 UTC

[jira] Created: (FELIX-2394) Servlets that are automatically unregistered should not be destroyed

Servlets that are automatically unregistered should not be destroyed
--------------------------------------------------------------------

                 Key: FELIX-2394
                 URL: https://issues.apache.org/jira/browse/FELIX-2394
             Project: Felix
          Issue Type: Bug
          Components: HTTP Service
    Affects Versions: http-2.0.4
            Reporter: Alan Cabrera


Servlets that are automatically unregistered, when their registering bundles are uninstalled, should not be destroyed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2394) Servlets that are automatically unregistered should not be destroyed

Posted by "Alan Cabrera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876135#action_12876135 ] 

Alan Cabrera commented on FELIX-2394:
-------------------------------------

Section 102.10.3.4

If the bundle which performed the registration is stopped or otherwise
"unget"s the Http Service without calling unregister then Http Service must
automatically unregister the registration. However, if the registration was
for a servlet, the destroy method of the servlet will not be called in this case
since the bundle may be stopped. unregister must be explicitly called to
cause the destroy method of the servlet to be called. This can be done in the
BundleActivator.stop method of the bundle registering the servlet.

> Servlets that are automatically unregistered should not be destroyed
> --------------------------------------------------------------------
>
>                 Key: FELIX-2394
>                 URL: https://issues.apache.org/jira/browse/FELIX-2394
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Alan Cabrera
>
> Servlets that are automatically unregistered, when their registering bundles are uninstalled, should not be destroyed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2394) Servlets that are automatically unregistered should not be destroyed

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876133#action_12876133 ] 

Guillaume Nodet commented on FELIX-2394:
----------------------------------------

If the HTTP service is going away, the servlet should not be unregistered i i think, becomes it may become unusable and cause troubles when the service comes again.

> Servlets that are automatically unregistered should not be destroyed
> --------------------------------------------------------------------
>
>                 Key: FELIX-2394
>                 URL: https://issues.apache.org/jira/browse/FELIX-2394
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Alan Cabrera
>
> Servlets that are automatically unregistered, when their registering bundles are uninstalled, should not be destroyed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2394) Servlets that are automatically unregistered should not be destroyed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876132#action_12876132 ] 

Felix Meschberger commented on FELIX-2394:
------------------------------------------

Why ?

IMHO a servlet which is unregistered must be destroyed to comply with the Servlet API contract.

And it doesn't matter why the servlet is unregistered, either because the Http Service is going away or the registering bundle is going away without explicitly unregistering the servlet or the servlet is explicitly unregistered.

> Servlets that are automatically unregistered should not be destroyed
> --------------------------------------------------------------------
>
>                 Key: FELIX-2394
>                 URL: https://issues.apache.org/jira/browse/FELIX-2394
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Alan Cabrera
>
> Servlets that are automatically unregistered, when their registering bundles are uninstalled, should not be destroyed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-2394) Servlets that are automatically unregistered should not be destroyed

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876153#action_12876153 ] 

Felix Meschberger commented on FELIX-2394:
------------------------------------------

Thanks for the clarification ... Obviously I did not read that statement closely enough.

> Servlets that are automatically unregistered should not be destroyed
> --------------------------------------------------------------------
>
>                 Key: FELIX-2394
>                 URL: https://issues.apache.org/jira/browse/FELIX-2394
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.0.4
>            Reporter: Alan Cabrera
>
> Servlets that are automatically unregistered, when their registering bundles are uninstalled, should not be destroyed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.