0

I am using spring retry template, when there is retry process is running, I am not able to stop the server. If I am trying to stop the server, It is saying tc server is not responding, would you like to terminate the server.

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?

Thanks in Advance

Community
  • 1
  • 1
Sireesh Vattikuti
  • 1,180
  • 1
  • 9
  • 21

1 Answers1

0

You need to call shutdownNow() to interrupt any waiting (interruptible) threads.

Gary Russell
  • 166,535
  • 14
  • 146
  • 179