Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Quartz Shutdown issue

 
nv reddy
Greenhorn
Posts: 6
Java Mac PPC Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have configured my quartz job with spring and I am using Tomcat for the app. Whenever i try to stop the server the following SERVER warning is showing in console. Please can anyone let me know, how to stop the scheduler using Spring after the job completed.

Sep 22, 2011 12:36:39 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/VendorIntegrity] appears to have started a thread named [DefaultQuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.


Thanks.
 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an expert but I though the scheduler would always be running so that it can trigger the next batch job run. Its just a warning right ? Did you really have a memory leak ?
 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or did you just want the job to be triggered one time and not repeatedly. Do you need Quartz for that, isn't there a better way of doing that.
 
nv reddy
Greenhorn
Posts: 6
Java Mac PPC Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need the scheduler to be running continuously and Im not sure, how i can the memory leak. Whenener i brought down the server. the messaging is showing up, but i am not sure about the effects.

One more thing, is there anyway i can setup a job to be runnming only once by crobnexpession. if yes, how the expression should be?

Thanks for you time.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic