
Quarkus Scheduler and Quartz for Periodic and Cron Jobs
Run periodic and cron jobs in Quarkus with the Scheduler extension, handle concurrency and identity, and switch to Quartz for clustered, persistent jobs.
Tag
223 posts

Run periodic and cron jobs in Quarkus with the Scheduler extension, handle concurrency and identity, and switch to Quartz for clustered, persistent jobs.

Fix JSF input values that do not reach the bean: missing setter, request scope loss, validation failure, immediate, AJAX execute and wrong binding.

Turn on parallel test execution in JUnit 5: the configuration properties, execution modes, @Isolated and resource locks, and the shared state that breaks.

Debug a Java memory leak in production: confirm the growth, capture histograms and dumps safely, read the dominator tree and fix the holder.

A defensive checklist for Struts 2: upgrade, restrict method and parameter access, limit OGNL, check uploads and reduce what the server can do.

Package a Play application with sbt dist or a Docker image, set the secret key and allowed hosts, and run it behind a reverse proxy in production.

Send and receive Kafka messages in Micronaut with declarative producers and listeners, set serializers and offsets and test with a real broker.

Use dependencyManagement and a bill of materials in Maven to align library versions: import scope, the Spring Boot BOM, overriding and writing your own BOM.

Speed up bulk inserts in Hibernate with sequence ids, jdbc.batch_size, ordered inserts and periodic flush and clear, then check the batches ran.

Create a Spring Boot project with Maven using Spring Initializr, curl or an IDE, and read the parent POM, starters and wrapper it generates.

Set up Mockito with JUnit 5 using MockitoExtension, Mock, InjectMocks and Captor, choose strictness, and avoid manual MockitoAnnotations.openMocks calls.

Use Hazelcast or Redis for shared state in Java services: sessions, caches, locks and counters, with Spring configuration, trade-offs and failure handling.