Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: INS further explanation/help

...

Wiki Markup
{snippet:id=timer|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/quartz/example.xml}

Notes:

  • The SimpleTrigger repeatCount value count is starting at zero, meaning repeatCount=0 triggers once, repeatCount=1 triggers twice etc. (Quartz v1.5)
  • Maybe properties like description or durability are interesting for you - for further details refer to the Quartz project JobDetail JavaDoc API.



A number of properties can be configured on the component:

  • marshaler: a class implementing the QuartzMarshaler interface which populates the JBI exchange. The default one will create something like:
    Code Block
    langxml
    <timer>
      <name>My Example Job</name>
      <group>ServiceMix</group>
      <fullname>ServiceMix.My Example Job</fullname>
      <description/>
      <fireTime>Thu Oct 05 10:54:32 CEST 2006</fireTime>
    </timer>
    
    To get some hints on how to set up a marshaler, you may do such a Google Code search revealing how other marshalers are set up in static configuration files (like servicemix.xml). You will figure out that you have to create a silbing of <property name="triggers"> containing this code:
    Code Block
    langxml
    
    <property name="marshaler">
            <bean class="org.apache.servicemix.components.quartz.DefaultQuartzMarshaler" />
    </property>
    
  • scheduler the Quartz scheduler to use. If not specified, the factory will be used to create it.

...