Archive from May 2023
Java Records, one of the major highlights of the Java 16 release, provides a concise and immutable way to define classes for modelling data. This conciseness lends itself useful in a typical Jakarta EE application that can have a number of layers that need to share data. For example the data layer might want to return a subset of a given data set to a calling client through a data projection object. The REST layer might want to have separate entities for server and client side among others. This blog post explores the adoption of Java Records in a Jakarta EE application as a data transfer and projection object.
With the team freshly rejuvenated from the annualPayara Retreat,the May release of the Payara Platform is out with enhancements and bug fixes to rejuvenate your deployments. Payara Platform Enterprise 6.2.0 comes with 4 bug fixes, 3 improvements, a security fix and 6 component upgrades. Payara Platform Community 6.2023.5 also comes with 4 bug fixes, 5 component upgrades, 1 security fix and 1 improvement.
The Lombok project is a Java library that aims at “spicing up your java.” Started back in 2009, it consists mostly of annotations that can be used on Java classes to generate helpful constructs like getters and setters. It aims at freeing you from writing quite a number of the ceremonial boilerplate code that you sometimes need to write as part of your everyday use of Java.
YAML is a simple, human-friendly data serialization language for all programming languages. It is the main format for working with Docker. As a language agnostic format, there are many bindings for all the major programming languages. You can easily consume and return data in the YAML format in your Jakarta REST application using message body readers and writers.
MongoDB is one of the most popular NoSQL databases in the market, with its flexible data model, scalability, and rich query capabilities. When combined with Morphia, a powerful Java library for MongoDB, Jakarta EE developers can achieve even greater flexibility in creating modern applications that deliver exceptional user experiences. Watch this webinar recording to learn how to use MongoDB with Jakarta EE and the Morphia library!
Oftentimes in a Jakarta REST application, you may need to access some metadata about a given resource method matched by the Jakarta REST runtime, outside of a resource class. This could be so as to dynamically alter the client's request based on some custom business requirement, or for informative purposes. For example, in a Jakarta REST component like an exception mapper, you might want to get the currently matched resource method and get its HTTP method.