DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How To Create Asynchronous and Retryable Methods With Failover Support
  • Clustered Quartz Scheduler With Spring Boot and MongoDB

Trending

  • Why Successful LLM Demos Fail in Production
  • Testing Asynchronous Systems, Part 1: Mapping the System and Classifying Its Asynchrony
  • Seven AI Adoption Failures and How to Overcome Them
  • An Introduction to OpenID AuthZEN and authzen-enforcer, a Java SDK

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Maintenance
  4. How to Use Quartz, Mule Requester, and Splitter

How to Use Quartz, Mule Requester, and Splitter

Follow along with this Mule developer as he explains these three tools provided by Mule to ease the process of data integration.

By 
Pakala Venkat Reddy
·
Feb. 22, 18 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
9.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Hi Mulies! In this tutorial, we are going to create a simple application where I'm going to explain Quartz, MuleRequester, and Splitter Connectors. 

This small application will allow me to read a file from an FTP Server and split the records and write them to a File.

Here Is the Flow:Image title

Quartz: 

The Quartz Connector supports the scheduling of programmatic events. Users can create schedules using cron expressions. By using Corn expressions, you can Trigger your flows to execute at scheduled times by providing the day, month, and year.

Quartz Configuration -

Image title

 Here, I scheduled my flow to trigger every 1 minute by using the cron expression 0 0/1 * * * ?.

Mule Requester:

With Mule 3.x, we cannot read a file in the middle of our flow, so now we need to use a custom connector, Mule Requester. 

Mule Requester Configuration:

Image title

Here I am reading a file from an FTP location so in the resource, we need to provide an FTP username, password, host, port (not mandatory), and directory. Use the below command for this:

#['ftp://Username:Password@Host:21//Directory'] 

Message Chunk Splitter:

Splits your message into a chunk of bytes you defined. 

Image title

By using Message Chunk Splitter, I am splitting my input file records into 100 Bytes and then writing those records, after every 100 bytes of data, as an individual file, as shown below.

Image title

The above image shows you how the records got split up as individual files.

Image title

This is how the data got split into an individual record.

Thank you!

Quartz (scheduler)

Opinions expressed by DZone contributors are their own.

Related

  • How To Create Asynchronous and Retryable Methods With Failover Support
  • Clustered Quartz Scheduler With Spring Boot and MongoDB

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook