Announcement Announcement Module
Collapse
No announcement yet.
Spring context is destroyed immediately on shutdown without waiting jobs to complete Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring context is destroyed immediately on shutdown without waiting jobs to complete

    I have a spring application with many scheduled quartz jobs in it. When tomcat's shutdown.sh file is executed tomcat stops. However, I want all my jobs to complete their execution, then I want application server to stop.

    That works fine, all executing jobs finishes their jobs before server shuts down. However, Spring context is destroyed when I execute shutdown.sh. So any kind of DB operations etc. processes can not be done with cause NoClassDefFoundError.

    How can I handle this situation? I want Spring context to be destroyed after my quartz jobs finish their execution.
Working...
X