java - Sprint Boot Application Shutdown -


i have spring boot application listens jcaps. connection durable. when shutdown application using

curl -x post ip:port//shutdown 

application not shutting down completely. can see pid when grep processes. tried kill using

kill -15 pid 

or

kill -sigterm pid 

the pid gone, subscription jcaps topic still active. hence, when restart application, unable connect same topic using same subscriber name.

please on how shutdown spring boot application.


Comments