I've been looking at the cron scheduling here:
http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html

The model is a little complex, and its not clear to me what the
defaults should be. So I'll check in a simple version that uses the
cron expression and take a look at splitting it into attributes later.

Paul

<job class="org.my.synapse.job">
  <property name="stringProp" value="String"/>
  <property name="xmlProp">
     <somexml>config</somexml>
  </property>

  <simpletrigger forever="true" count="10" interval="1000"/> <!--
forever or count not both -->
  <crontrigger expression="0 * 1 * * ?" />
</job>

Paul


On 8/7/07, Ruwan Linton <[EMAIL PROTECTED]> wrote:
>
>
> On 8/7/07, Glen Daniels <[EMAIL PROTECTED]> wrote:
> > Paul Fremantle wrote:
> > > Thanks for the input. i was being lazy - this is the format that the
> > > existing Quartz code uses and it parses that string for you. However,
> > > I agree - from an ease of use aspect, that isn't helping.
> >
> > "That string", I believe, is based on standard unix crontab format,
> > which makes it very easy for people used to that format to cut+paste, or
> > to simply type.  The "*" character in crontab format means "all" or, in
> > other words, the same thing as omitting an attribute in Roland's
> > suggested format.
> >
> > > So I will use your idea. Now I think about it, I might also change the
> > > count="-1" to be a forever="true" | count="1 or more".
> >
> > Maybe support both?  So expression="crontab-expr" works, as does
> > hour="4"/minute="20"....
>
>
> +1 for supporting both. That way we are keeping the ease of use for the
> people who are familiar with UNIX cron without typing 5 different attributes
> to accomplish a simple task in the cron.
>
> Thanks,
> Ruwan.
>
> > --Glen
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to