Creating the source code

We have installed and configured everything that's necessary to create our microservice for the management of the registry of players. Now, it's time to write the code that's needed to expose our microservice APIs.

We will use the Thorntail project generator utility, https://thorntail.io/generator/, in order to get a project skeleton to work on. Our microservice, as described previously, will have to display APIs that allow us to perform CRUD operations. Java EE and Jakarta EE have specifications for implementing these features, as follows:

  • JAX-RS
  • CDI
  • JPA
  • JTA

We will use com.packtpub.thorntail as the Maven Group ID of the project, and football-player-microservice as the Artifact ID:

  1. Set the Group ID, Artifact ID, ...

Get Hands-On Cloud-Native Microservices with Jakarta EE now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.