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

Debug mode in Docker for Tomcat and TomEE

By | Apache TomEE, Docker, ES, Open Source, TomEE | No Comments

Remote debugging is a common practice for troubleshooting issues in software development. If you are using Tomcat or TomEE with Docker containers as part of your stack you can find various techniques to enable debug capabilities in these types of containers: 1. Create a custom Docker image by extending an existing official one[1] 2. Extensive customization of CATALINA_OPSTS[2] However, both approaches require extra steps in some scenarios. Below I share the simplest method I have used to do remote debugging in Apache Tomcat and Apache TomEE with a Docker image: $ $ docker run -it -p 8080:8080 -p 8000:8000 -e…

Read More

Docker y debug de Apache Tomcat y TomEE

By | Apache TomEE, Docker, ES, Open Source, TomEE | No Comments

El debug remoto es una práctica común para investigación de problemas de microservicios. Si estas utilizando contenedores Docker Apache Tomcat o Apache TomEE, en la web puedes encontrar varias técnicas como lo son: 1. Extender una imagen oficial y personalizar[1] 2. Utilizar personalización extensiva de CATALINA_OPTS[2] Sin embargo ambos enfoques requieren extra pasos aplicables para algunos escenarios. A continuación les comparto la forma más sencilla que he utilizado para poder hacer debug remoto en Apache Tomcat y Apache TomEE: $ $ docker run -it -p 8080:8080 -p 8000:8000 -e CATALINA_OPTS=”-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000″ tomcat:9.0.17-jre11 Anatomía de las opciones utilizadas: docker run Comando para…

Read More

How to Contribute to the TomEE Website

By | Apache TomEE, Open Source | No Comments

In a previous post, “How to Get Started Contributing to TomEE or any Open Source Project”, we explained the general workflow – things to do and steps to avoid – that can help you join and maximize your contribution to an Open Source Project. In this post, we will walk you through the technical steps one can follow to contribute to the Apache TomEE Website. It’s common knowledge in any Content Management System (CMS), that the complexity of information organization is directly proportional to the amount, type and format of information an organization want’s to provide to the users. For…

Read More

TomEE: A Tutorial on Microprofile Rest Client

By | MicroProfile, Open Source, Tomitribe | No Comments

On a previous blog post, Triber Ivan Junckes Filho published an overview of the MicroProfile Rest Client (Rest Client) standard. In this tutorial, we are going to build on Ivan’s overview to show you, step by step, how you can develop and deploy this type-safe approach to consume an existing JAX-RS microservices with Apache TomEE 8 M1. If you have not read Ivan’s overview, it is suggested you do that first and then come back to this tutorial. The toolset we are going to use for this tutorial includes Java 8, Apache TomEE 8 M1 and Maven 3.6. The technologies…

Read More

JavaDay Ecuador 2018

By | Community, Tomitribe | One Comment

On September 8, the first edition of Java Ecuador Day was held in beautiful Quito, Ecuador. The conference boasted more than 350 attendees with 20 speakers. As a Triber, I got the opportunity to attend as one of those speakers and together, alongside the attendees, we shared the latest knowledge in the Enterprise Java Ecosystem. Topics covered included Jakarta EE, Serverless, MicroProfile, Clean architecture, Cloud, Microservices, and success stories.   Alberto Salazar, the leader of the Java User Group in Ecuador, indicated that this is the first time that professionals from the region, members of the Java Community Process, Java Champions,…

Read More

Javeros de Colombia 2018

By | Community, MicroProfile, Tomitribe | No Comments

The inaugural Javeros de Colombia conference was held in the city of Cali Colombia on May 19th. The Javeros de Colombia is designed to provide a space for Latin American Java User Groups, education, public and private sectors to gather together and discuss the latest Java related technologies and trends like: Microservices, Cloud, Jakarta EE, Microprofile, Security, and DevOps. The conference was organized by three Columbian JUGs from the cities: Cali @CLOJUG , Medellin @MedellinJug, and Barranquilla @JUGBAQ . Together these JUGs created an outstanding gathering with content and with speakers from all over Latin America that included Community Leaders, Open Source Advocates, Java Champions, Oracle Aces and…

Read More