: : : : : i am developing a software for a enterprise which needs job scheduling to be done.I have written some programs but those are not working.So give me some sample programs to do job scheduling.
: : : : :
: : : :
: : : : I'm not sure of what exactly it is that you want, but if you use a timer you can schedule it to send actionevents at certain times. That way you can run the jobs when the action event is received.
: : : :
: : : Thank u for the suggestion.I know about about the timer class.Can you give me a sample code in which i can sechedule two or more tasks.
: : :
: : What tasks do you want to do? I was talking very generally, because when you catch that event, just call the code you need to call for the job to finish.
: Tasks i want to do is to send mails,Receive mails and do Escalation of mails to higher authorities.Escalation means the mail will be sent to higher authorities when the people under them will not reply to the customer's mail.
I just wanted a sample code of job scheduling, Eg:-Jobs scheduled whenever a samll task is performed, job to be done after 2 hours.I dont need java mail code.Only the core java code.