[英]Spring Retry is not allowing to stop the TC server Normally
I am using spring retry template, when there is retry process is running, I am not able to stop the server. 我正在使用spring retry模板,当正在运行重试进程时,我无法停止服务器。 If I am trying to stop the server, It is saying tc server is not responding, would you like to terminate the server.
如果我试图停止服务器,那是说tc服务器没有响应,您想终止该服务器。
I followed the following way, but unfortunately the same result. 我遵循以下方法,但不幸的是结果相同。
How can I shutdown Spring task executor/scheduler pools before all other beans in the web app are destroyed? 如何在销毁Web应用程序中的所有其他bean之前关闭Spring任务执行程序/调度程序池?
Thanks in Advance 提前致谢
您需要调用shutdownNow()
来中断所有等待的(可中断的)线程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.