[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: jbarr  XML
Profile for jbarr -> Messages posted by jbarr [4]
Author Message
light5 or whomever can help:

One fact I wanted to clarify. I am using quartz version 1.6.6 (i.e quartz-all-1.6.6.jar) That is the only jar we have configured. I realize earlier I referenced some of the 2.x.x documentation. I didn't notice any conflict with the two versions on the ability to schedule jobs in this fashion, and I guess over time I got used to using the 2.x.x documentation as it seemed clearer in this matter. Are there any known issues with scheduling months using the following in the months position 1,4,7,10. "please refer to my original question for more details on my trigger."

Thanks,

jbarr
light5 or whomever can help:

I went to the MySchedule UI link below and installed the war for the 2.3.0 version. I was hoping to find an easy out of the box tester in which to test the scheduler and versions used in case I might just have the wrong version configured. This was located at http://code.google.com/p/myschedule/downloads/list . I was wondering where I could find an example trigger/job that conforms the MySchedule configuration needs. It looked like on some of the screen-shots that the MySchedule Form expected a property file style configuration verses an XML format (which is what I am currently using) I navigated to the following site http://code.google.com/p/myschedule/wiki/CreatingUserJobs but both of the links "LoggerJob and Quarts's built-in received a page not found. When I attempted to go to this other link on page http://code.google.com/p/myschedule/wiki/MyScheduleUserGuide titled "Changing MySchedule Configuration" I could not get to the following. Full documentation on Quartz configuration (quartz.properties) can be found at http://quartz-scheduler.org/docs/1.x/configuration/index.html.

Any help and guidance you could point me toward would be appreciated.

jbarr
Thanks for you help, I will check that link out.
I have had difficulty scheduling a job that runs once every four months each year for the forseeable future. Based on the documentation located in the link provided I should be able to specify the months as numbers separated by commas. i.e.( 1, 4, 7,10).

http://www.quartz-scheduler.org/documentation/quartz-2.1.x/tutorials/crontrigger

However this will not even trigger on the first one. Now if I remove all the months but one it works fine and will trigger. Below is the configuration I am using with the CronTriggerBean.

<bean name="demographicsNotificationTrigger"
class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail">
<ref bean="demographicsNotificationDetail"/>
</property>
<property name="cronExpression">
<value>0 0 4 1 1,4,7,10 ?</value>
</property>
</bean>

I find it interesting that no other person in the community has had to set up a job to run on a quarterly basis. I did find some people talking about a job running every five months and the advice was to use the DateIntervalTrigger. I understand that this was because they were not using a unit that was a divider of 12. Based on the DateIntervalTrigger API it appears that it locks you into a set number of days as an interval when you specify the end (and I assume the beginning of the month). See below:

Taken from the DateIntervalTrigger API:
If you use an interval unit of MONTH then care should be taken when setting a startTime value that is on a day near the end of the month. For example, if you choose a start time that occurs on January 31st, and have a trigger with unit MONTH and interval 1, then the next fire time will be February 28th, and the next time after that will be March 28th - and essentially each subsequent firing will occur on the 28th of the month, even if a 31st day exists. If you want a trigger that always fires on the last day of the month - regardless of the number of days in the month, you should use CronTrigger. 


Is there a way to get CronTriggerBean to work like it is ostensibly documented? I noticed some people using a ratio notation. Could I use something like 3/12 or 1/4 in the months position? If this not possible, is my understanding of DateIntervalTrigger correct? If not, could you provide me an example of how to use DateIntervalTrigger?
 
Profile for jbarr -> Messages posted by jbarr [4]
Go to:   
Powered by JForum 2.1.7 © JForum Team