-
Shortcut
docker pull abhirockzz/javaee-cdi-concurrency-utils
docker run -it -p 8080:8080 abhirockzz/javaee-cdi-concurrency-utils
-
Build it yourself using the
Dockerfile
in the project (it uses this Payara image as the base)docker build -t <your tag> .
docker run -it -p 8080:8080 <your tag>
git clone
the project and executemvn clean install
- Deploy
javaee-cdi-concurrency-utils.war
intarget
directory to any of the Java EE 7 containers
- execute a HTTP
POST
tohttp://localhost:8080/javaee-cdi-concurrency-utils/tasks/
- this initiates a task and returns the task ID
- execute a HTTP
GET
tohttp://localhost:8080/javaee-cdi-concurrency-utils/tasks/<taskID>
- it will give you a JSON payload with the task details
POST
a few more tasks....- execute a HTTP
GET
tohttp://localhost:8080/javaee-cdi-concurrency-utils/tasks/all
to get a JSON payload of all the tasks