This repository shows an example how you can integrate JobRunr and Quarkus.
This project has the following packages:
- org.jobrunr.examples: this package contains 3 classes:
JobRunrExampleApplication
: the EE application that defines the context path
- org.jobrunr.examples.services: this package contains MyService, a simple ApplicationScoped service with two example methods which you can run in the background.
- org.jobrunr.examples.webap.api: this package contains the following http resource:
JobResource
: this resource contains two REST api's which allows you to enqueue new Background Jobs
- clone the project and open it in your favorite IDE that supports Maven
- Run the Maven plugin
mvn quarkus:dev
and wait for Quarkus to be up & running - Open your favorite browser:
- Navigate to the JobRunr dashboard located at http://localhost:8000/dashboard.
- To enqueue a simple job, open a new tab and go to http://localhost:8080/jobs/ and take it for there.
- Visit the dashboard again and see the jobs being processed!