Recently, I’ve been experimenting with Micronaut, a new-ish "modern, JVM-based, full-stack framework
for building modular, easily testable microservice and serverless applications" from the makers of Grail. So far, I’ve
been really impressed. The documentation has been excellent, and the framework is very easy to get started with. I have,
though, run in to some trouble writing tests, or, more accurately running tests. I spent far too much time.....
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.....
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.....
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.....
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.....
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.....
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.....
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.....
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.....
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.....