How to create a microservice with Eclipse MicroProfile and Apache TomEE

By | Apache TomEE, Eclipse Foundation, Jakarta EE, Java EE, MicroProfile, Open Source, TomEE | No Comments

At Tomitribe we are active stakeholders on projects like Apache TomEE, Eclipse MicroProfile and Eclipse JakartaEE and provide Enterprise Support for these and other Open Source projects like Apache Tomcat & Active MQ. In this article, we will cover how developers can create a microservice with Java using the Eclipse MicroProfile specifications with the DevOps friendly application server, Apache TomEE. If MicroProfile is a topic you want to learn more about, we have many other blog posts covering the basics of Eclipse MicroProfile with details of each of the specifications along with examples. The official Apache TomEE project website also…

Read More

5 minutes or less: Jakarta JSON Binding with Apache Johnzon

By | Jakarta EE, Java EE, Open Source, TomEE | No Comments

This tutorial shows how to use Jakarta JSON Binding to deserialize JSON data into Java POJOs and to serialize Java POJOs into JSON data. The Jakarta JSON Binding provider used is Apache Johnzon To get started you will need to clone the jsonb-basic-tutorial project on GitHub. Create a directory on your Desktop or somewhere and execute the following Git command. git clone Assuming you have Maven installed your next step is to go into the new jsonb-basic-tutorial directory and execute the Maven install command mvn install The jsonb-basic-tutorial uses mock JSON data from The JSON data is stored…

Read More

MicroProfile: How it has evolved and where it’s headed?

By | Jakarta EE, Java EE, MicroProfile, Open Source | No Comments

About a year ago, I wrote a blog post about Eclipse MicroProfile that explained what it is and why it was created. The explanation of what it is and why it was created is still valuable, but MicroProfle evolves rapidly, so it’s time to talk about where we are at, what’s new, and what to expect in the next few months. MicroProfile Today As per June 2019, MicroProfile 3.0 has been released with the following content. MicroProfile 1.4 release from last year MicroProfile 3.0 release from this year Updated versions of Metrics and Health Check introduced breaking API changes. They…

Read More

Singleton Session Beans: Eager initialization and ordering

By | Apache TomEE, Jakarta EE, Java EE, TomEE | No Comments

Tomitribe support customers often use Java Singleton EJBs, and while powerful the sequence of startup and initialize can be confusing. This tutorial will help explain how Singleton EJB’s can be eagerly initialized at application startup and how we can define a priority during this process. Review EJB Annotations Before jumping into the code let’s do a recap of the following annotations used in this blog post: @Singleton Component-defining annotation for a singleton session bean. @Startup Marks a singleton bean for eager initialization during the application startup sequence. @DependsOn Used to express an initialization dependency between singleton components. The container ensures…

Read More

Upgrading TomEE: Keeping jettison as the JSON provider in JAX-RS

By | Apache TomEE, Java EE, Open Source, TomEE | No Comments

In this article, we are going to learn how to configure on TomEE 7.x or later with the legacy JSON provider used by TomEE 1.7.x. This scenario is useful when you are migrating JAX-RS based applications and want to keep the legacy JSON processing from the Jettison library (v1.3.7) used by TomEE 1.7.x. Since TomEE 7.x, The Johnzon library has been the default provider because it implements the JSON-P_1.1 (JSR-353) and JSON-B_1.0 (JSR-367) specifications. Application and Server configurations In order to enable Jettison as the JSON provider for TomEE 7.x or later you need to execute the following changes: In…

Read More

Free Cookbook of 166 Java EE Code Examples

By | Apache TomEE, Jakarta EE, Java EE, Open Source, TomEE | No Comments

A point of pride for the TomEE community is a large library of examples contained in the TomEE GitHub project. Whenever you clone or otherwise download the TomEE GitHub project you get nearly fourteen dozen examples you can review and run to learn more, not just about TomEE, but Java EE in general. The examples are like a free, code-centric cookbook that covers everything from programming a simple Java web application to CDI interceptors, to WebSockets with TLS Security. With 166 coded examples to choose from it seems there is something for everyone. Getting started with TomEE and running its…

Read More