Friends of OpenJDK Today

Thorntail Fat, Thin, and Skinny Approach for Running Microservice Java Applications

September 22, 2021

Author(s)

  • Avatar photo
    Tetiana Fydorenchyk

    Global Product Marketing at Virtuozzo, the leader in virtualization and hyperconverged cloud platform for MSPs and CSPs. A former Vice President of Marketing in Jelastic, a multi-cloud PaaS provider serving ... Learn more

Thorntail, originally WildFly Swarm, is most suitable for packaging applications as JARWAR, or EAR files. The most important value is in the functional agility the Thorntail provides. You can start with the stripped down version of Thorntail, adding the required parts and application code on top.

microservices

Below we will describe how to build and deploy Thorntail based applications using Fat, Thin and Skinny approaches. The application will be packaged in the Jar/War format automatically with the help of Builder add-ons prepared by Jelastic. The topology will consist of Maven build node and JVM containers for running microservices.

Thorntail Fat Jar Builder Installation

wildfly swarm

To get started, log in to Jelastic dashboard, find the Thorntail Fat Jar Builder in the Marketplace and click Install.

Or you can import Thorntail Fat JPS manifest using GitHub link:

https://github.com/jelastic-jps/thorntail/blob/master/microservice-fat-jar/manifest.jps

maven java

To do that, open the Import window, paste the link and confirm installation by clicking Import button in the opened window.

jar war file

If required, change installation settings such as environment name or GitHub repository link to a custom Thorntail Fat project. Then press Install.

jar war file

When the installation and building of the project are completed, a corresponding message appears. You still need to wait a few minutes for deploy to be finished (feel free to track the process in Tasks panel). In the default implementation, it is done under api/greeting context.

wildfly swarm plugin

Afterward, you can make sure, that application is up and running by pressing Open in browser button.

Thorntail Skinny Jar Builder Installation

build jar

Find the Thorntail (WildFly Swarm) Skinny Jar Builder in the Marketplace and click Install.

microservice application

Or import Thorntail (WildFly Swarm) Skinny JPS manifest using GitHub link: https://github.com/jelastic-jps/thorntail/blob/master/microservice-skinny-jar/manifest.jps

build jar

If required, change installation settings such as environment name or GitHub repository link to a custom Thorntail Skinny projectThen press Install.

wildfly swarm

When the installation and building of the project are completed, a corresponding message appears. You still need to wait a few minutes for deploy to be finished (feel free to track the process in Tasks panel). In the default implementation, it is done under api/greeting context.

build jar

Afterward, you can make sure, that application is up and running by pressing Open in browser button.

Thorntail Thin War Builder Installation

thin jar

Find the Thorntail (WildFly Swarm) Thin War Builder in the Marketplace and click Install.

build web application

Or you can import Thorntail(WildFly Swarm) Thin JPS manifest using GitHub link: https://github.com/jelastic-jps/thorntail/blob/master/microservice-thin-war/manifest.jps

thin jar

If required, change installation settings such as environment name or GitHub repository link to a custom Thorntail Thin projectThen press Install.

maven app

When the installation and building of the project are completed, a corresponding message appears. You still need to wait a few minutes for deploy to be finished (feel free to track the process in Tasks panel). In the default implementation, it is done under api/greeting context.

build war

Afterward, you can make sure, that application is up and running by pressing Open in browser button.

Multiple Thorntail Projects with Microservices

thorntail wildfly swarm

You can use just created Maven node for building extra projects and deploying them to different environments to get a set of distributed microservices.

thorntail wildfly swarm

First of all, create a separate environment with Java Engine.

maven java

Then click Add Project next to the Maven node in the initial environment.

Specify the name and link to the project, as well as choose the environment where it should be deployed. Additionally, you can activate automatic updates. Then confirm pressing Add + Deploy.

More details on how to build and deploy Java applications can be found at the Maven node documentation.

In this way, you can easily build and deploy your Thorntail (WildFly Swarm) based applications packaged as JAR and War files using Fat, Skinny or Thin approach. Register and try out this implementation for your custom project to feel the benefits of microservices running in the cloud.

Related Articles

View All

Author(s)

  • Avatar photo
    Tetiana Fydorenchyk

    Global Product Marketing at Virtuozzo, the leader in virtualization and hyperconverged cloud platform for MSPs and CSPs. A former Vice President of Marketing in Jelastic, a multi-cloud PaaS provider serving ... Learn more

Comments (1)

Your email address will not be published. Required fields are marked *

Highlight your code snippets using [code lang="language name"] shortcode. Just insert your code between opening and closing tag: [code lang="java"] code [/code]. Or specify another language.

Save my name, email, and website in this browser for the next time I comment.

Tyutyutyu

Thorntail has announced end of life.

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard