I am using java spring framework to develop a Webapp.
I have a situation where I want to trigger one method at future date( value of the future date is retrieved from database)
I tried spring quartz but it starts running as its xml configuration is loaded and I want to trigger the method only once in the future time.so the date should be able to be set programmatically not from XML configuration
eg
methodOne(futureDate)
{
//on futureDate it calls
methodTwo(<some args>)
}
What would be the good way to achieve this ?
Thanks in advance!
Quartz Scheduler is configurable programatically. I have used it before for user-controlled scheduling, and it can do exactly what you need.
Read all the tutorial pages (specially the one about SimpleTrigger), and you’ll have a better understanding of its capabilities.