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
- Host: GitHub
- URL: https://github.com/teedjay/playground-jee8
- Owner: teedjay
- Created: 2018-03-07T12:13:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T21:59:52.000Z (about 8 years ago)
- Last Synced: 2025-03-03T04:41:48.804Z (over 1 year ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```