You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by wjm wjm <zz...@gmail.com> on 2018/05/26 06:34:33 UTC
what's happened about shutdown graceful in tomcat
our shutdown hook works good in standalone mode
but when package as a war to run with tomcat, shutdown hook will not be
invoked, must invoke manually by subscribe spring ContextClosedEvent
anybody know what's happened?
Re: what's happened about shutdown graceful in tomcat
Posted by wjm wjm <zz...@gmail.com>.
oh, i see
standalone tomcat shutdown by receive shutdown command from shutdown port
after everything prepared, then do real shutdown action, so our shutdown
hook will not be invoked.
2018-05-26 14:34 GMT+08:00 wjm wjm <zz...@gmail.com>:
> our shutdown hook works good in standalone mode
> but when package as a war to run with tomcat, shutdown hook will not be
> invoked, must invoke manually by subscribe spring ContextClosedEvent
>
> anybody know what's happened?
>
>
>
>
Re: what's happened about shutdown graceful in tomcat
Posted by wjm wjm <zz...@gmail.com>.
ok.
but i can see the picture in my mate9Pro, :)
2018-05-26 15:14 GMT+08:00 Willem Jiang <wi...@gmail.com>:
> Hi Jimin,
>
> Please just send the text to the mailing list. I cannot see the attached
> picture.
> If you want to add some picture, you may need to upload the picture to the
> online drive and past a link here.
>
>
> Willem Jiang
>
> Twitter: willemjiang
> Weibo: 姜宁willem
>
> On Sat, May 26, 2018 at 2:34 PM, wjm wjm <zz...@gmail.com> wrote:
>
> > our shutdown hook works good in standalone mode
> > but when package as a war to run with tomcat, shutdown hook will not be
> > invoked, must invoke manually by subscribe spring ContextClosedEvent
> >
> > anybody know what's happened?
> >
> >
> >
> >
>
Re: what's happened about shutdown graceful in tomcat
Posted by Willem Jiang <wi...@gmail.com>.
Hi Jimin,
Please just send the text to the mailing list. I cannot see the attached
picture.
If you want to add some picture, you may need to upload the picture to the
online drive and past a link here.
Willem Jiang
Twitter: willemjiang
Weibo: 姜宁willem
On Sat, May 26, 2018 at 2:34 PM, wjm wjm <zz...@gmail.com> wrote:
> our shutdown hook works good in standalone mode
> but when package as a war to run with tomcat, shutdown hook will not be
> invoked, must invoke manually by subscribe spring ContextClosedEvent
>
> anybody know what's happened?
>
>
>
>