abhirockzz / javaee8-jsonb-jpa

JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker

Home Page:https://medium.com/oracledevs/try-out-json-b-1-0-jpa-2-2-using-java-ee-8-on-glassfish-5-docker-fe7ca45a6e7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run locally on Docker

  • git clone https://github.com/abhirockzz/javaee8-jsonb-jpa.git
  • mvn clean install - this will produce javaee8-jsonb-jpa.war in target directory
  • docker build -t <image_name> . - this will create a Docker image
  • docker run --rm -it -e ADMIN_PASSWORD=<gf_admin_password_of_your_choice> -p 8080:8080 -p 4848:4848 -p 8181:8181 <image_name>
  • what's the Docker host IP ? docker-machine ip (e.g. 192.168.99.100)

Run it on Oracle Container Cloud

See this

Test it...

  • Fetch all employees http://<HOST_IP>:8080/javaee8-jsonb-jpa/. You will get a JSON payload with all employees
  • Fetch an employee - http://<HOST_IP>:8080/javaee8-jsonb-jpa/abhirockzz@gmail.com. You will see a JSON payload in as a response

About

JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker

https://medium.com/oracledevs/try-out-json-b-1-0-jpa-2-2-using-java-ee-8-on-glassfish-5-docker-fe7ca45a6e7

License:GNU General Public License v2.0


Languages

Language:Java 93.2%Language:HTML 6.8%