[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Calendars  XML
Forum Index -> Quartz
Author Message
Bermudo

neo

Joined: 03/05/2010 22:34:35
Messages: 7
Location: Modena, Italy; Berlin, Germany; Madrid, Spain
Offline

I have two questions to which I can't find an answer in the documentation.

If I schedule a job with a trigger that is configured with an exclusion calendar, and the calendar is not registered in the scheduler, a SchedulerException is thrown and the job not scheduled.

Suppose the scheduler has a job and a calendar registered but the calendar gets deleted (not the job), what is going to happen? Is this going to affect the scheduler and perhaps cause an unrecoverable error, or is it going to affect the job and perhaps throw a JobExecutionException?

Thanks in advance.
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1703
Offline


The call to deleteCalendar() will result in an exception if there are triggers referencing it.

Sorry about this not being well-doc'd on the Scheduler interface. It is on the JobStore interface - but that doesn't exactly help most end-users. I'll add the same info to Scheduler.
Bermudo

neo

Joined: 03/05/2010 22:34:35
Messages: 7
Location: Modena, Italy; Berlin, Germany; Madrid, Spain
Offline

Thank you for your response.

If I understand the documentation correctly, a 'JobPersistenceException' will be thrown if I try to delete a calendar while another trigger, registered in the scheduler, is modified by that calendar.

No need to respond if my assumption is correct. (I'll find out anyway.)

Thanks again.
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team