+ All Categories
Home > Technology > Mule Quartz connector

Mule Quartz connector

Date post: 22-Feb-2017
Category:
Upload: ankush-sharma
View: 188 times
Download: 1 times
Share this document with a friend
12
Mule Quartz Connector By – Ankush Sharma
Transcript
Page 1: Mule Quartz connector

Mule Quartz Connector

By – Ankush Sharma

Page 2: Mule Quartz connector

Mule Quartz Connector?

The Quartz Connector supports the scheduling of programmatic events, both inside and outside your Mule flow. Through a quartz endpoint, you can trigger flows that don’t depend on receiving any external input to execute at scheduled times.

For instance, an inbound Quartz endpoint can trigger inbound events, such as temperature reports from a remote location, at regular intervals.

Outbound Quartz endpoints can delay otherwise imminent events. For example, you can prevent outgoing email from being sent as soon as it has completed processing in your Mule flow. Instead, you can use Quartz to delay sending it until the top of the next hour.

Page 3: Mule Quartz connector

How can Quartz connector be used?– Quartz endpoint configuration consists of two stages:

– Decide where you want to place the Quartz endpoint within your Mule flow, then drag it from the Palette to the appropriate place in the sequence of building blocks that make up your Mule flow.

– If you place the Quartz endpoint at the beginning of the flow, it acts as an inbound endpoint (such as, message source), controlling the timing of inbound events.

– If you place the Quartz building block in the middle or at the end of the flow, it serves as an outbound endpoint, controlling the times at which outbound events take place.

– Configure the Quartz endpoint by providing values for the fields on the various tabs on the properties editor, which you open by clicking the Quartz icon on the Message Flow canvas.

Page 4: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (General tab) (Cont.)

– Following are the properties on general tab –

– Display Name – The name of the connector used for display purposes in Mule flow.

Page 5: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (General tab)

– Following are the properties present on general tab –

– Job Name – The name of the Quartz job.

– CRON Expression – CRON expression to schedule event at specified date and time.

– CRON Time Zone – The ID of the time zone on which the expression will be based.

– Repeat Interval – Interval after which Quartz Connector will repeat its job.

– Repeat Count – Number of events to be scheduled.

– Start Delay – Time delay after server startup to start Quartz job.

– Job – Instance of Job to be executed by Quartz connector.

– Connector Configuration – Reference of Connector Configuration.

Page 6: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (Advanced tab)(Cont.)

– Following are the properties on advanced tab –

– Address – The generic address for this Quartz endpoint.

Page 7: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (Advanced tab)

– Following are the properties on advanced tab –

– Response Timeout – Time in milliseconds after which the call will be timed out if no response.

– Encoding – Encoding standard applied on message data.

– MIME Type – Mime type of message data e.g. application/json.

– Connector Endpoint – Reference of the global configuration of connector endpoint.

Page 8: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (Reconnection tab) (Cont.)

– Following are the properties in reconnection tab –

– Do not use a Reconnection Strategy – This is the default radio button which specifies do not try to reconnect if there is error connecting to the web address URL.

Page 9: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (Reconnection tab)

– Following are properties on reconnection tab –

– Standard Reconnection – Use this radio button to enable a standard reconnection strategy.

– Frequency (ms) – The frequency time in milliseconds after which the File connector will try to access the web address URL.

– Reconnect Attempts – This tells how many times the File connector will try to connect to web address URL.

– Reconnector Forever – Check this box if there is need to make File connector connect to web address URL until there is a successful connection with it.

– Custom Reconnection – Use this radio button to create a custom Reconnection strategy.

– Class – The java class which will come in action after a failed connection attempt.

– Run the connection in a separated thread – Check this box if there is need to use this custom reconnection operation in separate thread.

Page 10: Mule Quartz connector

Quartz Connector – Configuring as Inbound Endpoint (Transformers tab)

– Following are properties on Transformers tab –

– Global transformers – Enter a list of synchronous transformers that are applied to the request before it is sent to the POP3 connector.

– Transformers to be applied - Enter a list of synchronous transformers that are applied to the response before it is dispatched from the POP3 connector.

Page 11: Mule Quartz connector

Quartz Connector – Notes and Meta-Data tabs

– Notes tab - This tab is used to add special notes for the Quartz connector.

– Metadata tab – This tab is used to add any metadata entry for Quartz connector.

Page 12: Mule Quartz connector

Thank You!


Recommended