Create Java WebApp with Mature Microservice

Last updated: 2025-09-14

J-Framework Web project simplifies building Java web applications based on JSF and PrimeFaces and Mature Microservices backend.

Pre-Requisites:

  1. Create Mature Microservice

  2. Run the Microservice

Steps:

  1. Create Maven project with the following pom.xml:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/pom.xml[]

If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project)

  1. Create config file at src/main/resources/config.properties with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/resources/config.properties[]
  1. Create Model with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/java/com/app/person/Model.java[]
  1. Create ServiceClient class with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/java/com/app/person/ServiceClient.java[]
  1. Create controller (JSF Managed Bean) at src/main/java/com/app/person/Controller.java with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/java/com/app/person/Controller.java[]
  1. Create JSF XHTML Page at src/webapp/index.xhtml class with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/webapp/pages/person/full.xhtml[]
  1. Create Main class with the following contents:

Unresolved include directive in modules/6.x.x/pages/frameworks/jk-framework/jk-framework-webstack/java-web-jsf-microservice-mature-tutorial.adoc - include::inc/microservice-mature/src/main/java/com/app/App.java[]

Thats it, now run your App class, in few seconds your browser will open and you should see something like this:

Output