/javaee7-microservice

Sample microservices-based app using Java EE 7, JPA, RESTful, Arquillian, Docker

Primary LanguageJava

Blog microserice app using Javaee7

The microservices-based application using Java EE 7, JPA and RESTful Web Services. Prepared for wildfly or glassfish containers.

Integration testing

For integration testing I added Arquillian with 2 profiles for grassfish 4.1 and wildfly 8.2 containers. Run integration test


sh docker/run-integration-tests-gf.sh
sh docker/run-integration-tests-wf.sh

Run application

The most straightforward way to do it is via docker. There is a script srartup.sh which makes package, runs database docker container and glassfish or wildfly docker container.

sh docker/startup-gf.sh
# OR
sh docker/startup-wf.sh

You can check Blog microservice http://docker-host:8080/blog/resources/posts