Adding end date to existing trigger ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding end date to existing trigger ?

popianovka
We added( trigger.setEndTime(date)) this , but it is showing ObjectAlreadyRegisteredException.

my requirement if i need to add endtime to 1st time registered trigger and as well as already register trigger with schedular.

Any way Thanks.

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=9668&messageID=21025#21025


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Adding end date to existing trigger ?

popianovka
Try to use [b]scheduler.rescheduleJob()[/b] method.
This method basically removes the old trigger and adds the new one to the job.

Cheers
N@vin

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=9668&messageID=21036#21036


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]