An open API service indexing awesome lists of open source software.

https://github.com/teedjay/playground-jee8

Messing around with JEE8
https://github.com/teedjay/playground-jee8

Last synced: 10 months ago
JSON representation

Messing around with JEE8

Awesome Lists containing this project

README

          

# playground-jee8
Messing around with new JEE8 features

## Features tested
This is a list of the features tested in this project.

- [x] Creating JEE8 war and running om Payara Micro 5
- [ ] Testing with cdiunit, respons codes and errors
- [ ] Testing new Beans Validation
- [ ] Catch all exceptions and always return homebrew responses
- [ ] Add OpenAPI / Swagger (eg with apiee)

## How to build
You need Java 8 to build this project.
```
mvn clean <== will clean the target folder
mvn package <== will build a runnable jar file at target/fms-metrics-jms.jar
```

## To run locally
Make a local `payara` folder in the root folder og this project and download the
latest Payara Micro v5 jar file there (do **not** add payara micro to git).

Then run the following command using Java 8.
```
java -jar payara/payara-micro-5.Beta2.jar --nocluster --deploy target/jee8-1.0-SNAPSHOT.war
```

## To test from terminal
You can test using curl like this :
```
curl -i http://localhost:8080/jee8-1.0-SNAPSHOT/rest/application.wadl
curl -i http://localhost:8080/jee8-1.0-SNAPSHOT/rest/quote/list
curl -i http://localhost:8080/jee8-1.0-SNAPSHOT/rest/quote/response
curl -i http://localhost:8080/jee8-1.0-SNAPSHOT/rest/quote/error
```