Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Quartz component


Published on

The main motto of this PPT is how to use Quartz component in our applications.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Quartz component

  1. 1. Quartz Component 10-12-2015
  2. 2. Introduction • Quartz is a open source job scheduling framework, that let you scheduler a task to run on a predefine date and time.
  3. 3. Example • hello world example
  4. 4. • .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:quartz="" xmlns="" xmlns:doc="" xmlns:spring="" version="EE-3.4.0" xmlns:xsi="" xsi:schemaLocation=" • •"> • <flow name="QuartzUsageFlow1" doc:name="QuartzUsageFlow1"> • <quartz:inbound-endpoint jobName="myquartz" repeatInterval="10000" responseTimeout="10000" doc:name="Quartz"> • <quartz:event-generator-job/> • </quartz:inbound-endpoint> • <logger message="--Hello world--" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  5. 5. • Output:
  6. 6. • Flow of execution: 1. Service will trigger for every 10sec 2. Service will display a message called ‘Hello world’
  7. 7. Benefits • Quartz can run embedded within another free standing application • Quartz can be instantiated within an application server (or servlet container), and participate in XA transactions • Quartz can run as a stand-alone program (within its own Java Virtual Machine), to be used via RMI • Quartz can be instantiated as a cluster of stand- alone programs (with load-balance and fail-over capabilities) for the execution of jobs