Java Magazine, Sept/Oct 2018
ORACLE COM JAVAMAGAZINE SEPTEMBER OCTOBER 2018 29 the leading edge cations that are composed of multiple WAR files to a single server However it is more common for each WAR file to be deployed to separate containers as microservices Either choice is valid and depends upon the requirements of your project Building the Sports Roster Application A Jakarta EE application is built on standards and its easy to develop The example application will allow a sports team to register and query team members The application Im going to build utilizes a JSF 23 Mojarra front end along with JAX RS web services for communication with the Java Persistence API JPA that works with the database The application is composed of three separate services each of them Maven projects The first project I demonstrate will be used to query the database the second will register insert or update to the database and the third is a front end user interface Consider that each service may be deployed to separate containers such as Apache Tomcat that do not bundle the full Jakarta EE stack For that reason I list only the dependencies in the POM that each service requires rather than listing the entire stack For this article each of the services can be deployed to a single instance of GlassFish 5 or another application server or servlet container Setting Up the Environment There are plenty of IDEs you can use for developing a Jakarta EE application The main issue at the time of this writing is that none of them offers direct support for Jakarta EE per se However most of them have complete support for Java EE 8 Because the initial release of Jakarta EE is aligned with Java EE 8 it is possible to make use of the IDE support for Java EE when developing Jakarta EE applications Most of the major IDEs eventually will contain direct support for Jakarta EE The IDE that I use for this article is a release candidate of Apache NetBeans 90 built from the codebase The Java EE plugins can be installed after the IDE has been built
You must have JavaScript enabled to view digital editions.