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

https://github.com/allanhoejgaardjensen/seed-rest-server-jee7

a REST service sample based on JEE7
https://github.com/allanhoejgaardjensen/seed-rest-server-jee7

hal hateoas jee7 rest-api rest-microservice restapi swagger

Last synced: about 1 year ago
JSON representation

a REST service sample based on JEE7

Awesome Lists containing this project

README

          

# Seed-REST-Server-JEE7
This is a sample REST service based on JEE7.

[![status](https://travis-ci.org/AllanHoejgaardJensen/seed-rest-server-jee7.svg?branch=master)](https://travis-ci.org/AllanHoejgaardJensen/seed-rest-server-jee7)
[![coverage](https://codecov.io/gh/AllanHoejgaardJensen/seed-rest-server-jee7/coverage.svg?branch=master)](https://codecov.io/gh/AllanHoejgaardJensen/seed-rest-server-jee7)

## Deployment
The sample has two very simple concepts - "account" and customer" - which is assembled into one deployable war file.
Databases are separate to illustrate two different services. Normally they would be deployed as two different deployable units.

Useful Commands
---------------

To build the whole project:

mvn package

To build project including running integration tests:

mvn verify

To run in Wildfly:

mvn -N -Pwildfly cargo:run

To run in WebLogic:

mvn -N -Pweblogic cargo:run

To redeploy in Wildfly

mvn -N -Pwildfly cargo:redeploy

To redeploy in WebLogic

mvn -N -Pweblogic cargo:redeploy

Admin console
-------------
The WebLogic console may be accessed from http://localhost:7001/console using username "weblogic" and password "weblogic1".
The JBoss console may be accessed from http://localhost:9990 using username "advisor1" and password "passw0rd".

Inspiration
-------------
The code here is inspired heavily by work done by Nykredit on REST services.