Merry Christmas, 2018

I hope you all have a merry Christmas. More importantly, I hope you take the time to think about the birth of the child that gives Christmas its meaning. "The birth of Christ is the timeless event that leads us to believe that the cries of a broken world have actually been heard. A Savior has been born. The vault of Heaven truly has been opened" -- Author Unknown Thanks be to God for His indescribable.....

Read More ›

A Possibly Silly Question about Java Visibility

This morning, I was asked a question by a coworker that we both thought we knew the answer to: if a method is protected, can other classes see that method? The answer surprised us: maybe. :) It’s a pretty simple, basic question, but I thought I’d mention it in case there’s a beginner wondering, or more senior developers, such as myself and my team mate, that just have it wrong.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 8: The Conclusion

Many times, one of the hardest parts of getting started with a particular piece of technology is figuring out how to get started. :) In this series, I’ve used an extremely simple project to show how to do just that with a number of MicroProfile implementations. Obviously, a real application will have many more concerns than we dealt with in this application, but what this effort gave us is working, runnable, and testable build.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 7: Helidon

Up next in our series comes an offering from, to me, a somewhat surprising source, Oracle, and that offering is Helidon. I first heard about in September 2018, and while it’s still pre-1.0, it looks extremely promising. Like Hammock, Helidon projects are jar projects, so we need to set the package type appropriately, then import the Helidon dependencies: <packaging>jar</packaging> <properties> <helidon.version.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 6: Hammock

This time around, we’re going to start looking at a slightly different take on MicroProfile implemenations. Whereas Payara Micro, Thorntail, OpenLibery, and TomEE are all based on application servers (albeit stripped down versions), our implementation in this post, Hammock, is based on a CDI container. Rather than start what amounts to an app server under which a web is deployed, we’ll be spinning up a plain ol' CDI container, which will.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 5: TomEE

In this installment of our series, we’re going to take a look at the last of what I think of as the more traditional, app-server-based/-spawned implementations, TomEE. TomEE is a fully Java EE-enabled distribution of the venerable workhorse Tomcat, and comes with support for creating MicroProfile applications, so let’s see what that looks like. This should come as no surprise at this point, but setting up a.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 4: OpenLiberty

Having looked at Thorntail last time, we’ll take a look at OpenLiberty this time. OpenLiberty is the open source project under which, as I understand the state of things, IBM’s WebSphere Liberty is developed. In this installment, we’ll give its MicroProfile support a quick spin. We start by setting up our POM: <packaging>war</packaging> <properties> <app.name>openliberty</app.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 3: Thorntail

In the last installment, we talked about Payara Micro. In this, we’re going to look at Thorntail. Thorntail, née WildFly Swarm, is based on WildFly from Red Hat and is said to be "just enough app-server". Much like Payara Micro, Thorntail exposes a battle-tested application server platform, stripped down for microservices usage. Let’s a take a look at what it takes to deploy our application on Thorntail. Before.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 2: Payara Micro

Payara Micro is a MicroProfile implementation from the good folks at Payara, based on Payara Server, which is itself based on GlassFish. Whew! If you’re familiar with either GlassFish or Payara, you should feel right at home with Payara Micro. To start, we need to understand how Payara Micro deploys the application. Payara Micro spins up an instance, albeit a somewhat stripped down version, of Payara Server. Once the server instance has started.....

Read More ›

Getting Started with Eclipse MicroProfile, Part 1: the Application

To start our investigation, we need an application to work with. Part of the problem with getting started applications is making sure that your example is complicated enough to be interesting, but not so complicated that the greater message is lost in the details of the app. MicroProfile 2.0 is made up of a number of components: MicroProfile Config 1.3 MicroProfile Fault Tolerance 1.1 MicroProfile Health Check 1.0 MicroProfile JWT Authentication.....

Read More ›