Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.77 KB

README.md

File metadata and controls

23 lines (20 loc) · 1.77 KB

JobRunr MicroProfile example

This repository shows an example how you can integrate JobRunr with JakartaEE using OpenLiberty.

About this project

This project has the following packages:

  • org.jobrunr.examples: this package contains 2 classes:
    • JobRunrExampleApplication: the EE application that defines the context path
    • JobRunrProvider: a class that produces various beans that can be consumed in the http resources. It also contains the BackgroundJobServer responsible for processing background jobs.
  • 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 two http resources:
    • JobResource: this resource contains two REST api's which allows you to enqueue new Background Jobs
    • BackgroundJobServerResource: this resource allows you to start and stop the BackgroundJob server

How to run this project: