ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Job Scheduling in Java
Subject:   how to reschede the job
Date:   2007-02-01 21:53:05
From:   bhumireddy
Hi, any one help me how to reshedule the job.
mycode:
Date newtime=new Date(date.getTime()+(10000L*6L*cim));
JobDetail job = new JobDetail("job1", "group1",SimpleJob.class);
SimpleTrigger trigger = new SimpleTrigger ("trigger","group", newtime);
sched.rescheduleJob("job1","group1",trigger);
ft=sched.scheduleJob(job,trigger);



It is not resceduling the job.
I am not getting the jobnames from String jobnames[]=sched.getJobNames("group1");
Please help me in this.


1 to 1 of 1
  1. how to reschede the job
    2007-05-10 21:22:02  VishalThakur [View]

1 to 1 of 1