Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Servlet.destroy() not called on Jetty 10 stop ?

Hi,

On Wed, May 26, 2021 at 6:21 PM Óscar Frías Barranco <ofrias@xxxxxxxxx> wrote:
>
> Hello.
>
> We have migrated a webapp from Jetty 9.4 to Jetty 10 and it looks like now the method destroy() is not being called when Jetty is stopped.
>
> Is this the expected behavior?
>
> How can we execute our shutdown code when Jetty is stopped?
>
> Thanks a lot for your help.

If you refer to Servlet.destroy(), it should be called.

If you have a reproducer, please open an issue at
https://github.com/eclipse/jetty.project/issues.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top