Play! Jobs - Web UI for Play! Framework Async Jobs and Monitoring API with RESTEasy, JAX-RS, REST and JSON
Join the DZone community and get the full member experience.Join For Free
My latest open source contribution is Play! Jobs, hosted on the always awesome Github.
Play! Jobs is a Web Interface to manage and trigger async jobs running on a Play! Framework application. It also provides a JAX-RS/RESTFul API, exposed with JSON and powered by Play!'s RESTEasy Module. This API is a good start, it might turn out to be a extremely powerful feature since we all know how useful and critical it is to monitor production environments.
You should see all the jobs defined on your application, basically all your classes that extend play.jobs.Job.
Using Play!'s RESTEasy's module. All the business logic is encapsulated on the service class JobsService which contains the annotations necessary to expose the service and bind it as a JSON interface. This JSON interface is useful if you need to hook your Play! application into a monitoring solution like Nagios.
The source code is available on mashup-fm/play-jobs.
Article originally published at Geeks are totally in! by Felipe Oliveira, a NYC-based Java and Scala Consultant who specializes in Open Source and technologies such as Play! Framework, Elastic Search, RabbitMQ and NoSQL.
JSON API REST Web Protocols career Framework Web Service Open source application
Opinions expressed by DZone contributors are their own.