Posts

Showing posts with the label Quartz

How to Schedule and Send Batch Emails Using Azure ACS and Spring Boot: Step-by-Step Guide

Image
This diagram illustrates the end-to-end workflow of sending batch emails in a Spring Boot application: User Interaction : The admin/user configures the Quartz Scheduler with a trigger interval (e.g., every 60 seconds). Quartz Scheduler : The scheduler starts and triggers the batch job periodically. Spring Batch Processor : The batch job reads email recipients from the data source, processes them, and passes the recipients to the Email Service. Email Service : The Email Service sends the emails via Azure Communication Services (ACS). Azure Communication Services (ACS) : ACS processes the emails and returns delivery status to the Email Service. Logging and Notifications : The Email Service logs the success or failure of email delivery, and the Batch Processor notifies the Scheduler of job completion. This flow ensures a scheduled, automated, and efficient batch email sending process. To set up Azure Communication Services (ACS) for sending batch emails using Spring Batch and Quartz Sch...

Quartz with Spring Boot, Quartz JobListener Example - How to keep track the status of the running job?

Image
Hello everyone, today we will show you how to configure Quartz with Spring Boot and how to keep track the status of the running job. Tech stack Spring Boot 2.6.7 Java 17 Quartz Scheduler Quartz JobListener RAMJobStore for persisting quartz job. Maven Quartz is a richly featured, open-source job scheduling library that can be integrated within virtually any Java application - from the smallest stand-alone application to the largest e-commerce system.  Listeners are objects that you create to perform actions based on events occurring within the scheduler. As you can probably guess, TriggerListeners receive events related to triggers, and JobListeners receive events related to jobs. RAMJobStore is the simplest JobStore to use. It keeps all of its data in RAM. Final Project Directory: Maven[pom.xml] <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchem...