How to Build Java Applications Today: March 29, 2021
Tags: java, bpf
Published: 2021-03-30 13:48:58

## README

This is **issue #29** of my weekly newsletter, “How To Build Java Applications Today”. I read all the Java newsletters, so **you** don’t have to! If you like my newsletter, you can [subscribe to it on Substack](https://bpfnl.substack.com).

Last week, [I talked at IT-Tage 365](https://betterprojectsfaster.com/learn/talks-it-tage-2021-long-java-front-ends) about front-ends for Java developers (in German). If you want to hear the English version of that talk, [sign up for my first VJUG talk on April 7](https://www.meetup.com/virtualJUG/events/277066459/)! 

## Quote of the Week
_Happiness is having a large, loving, caring, close-knit family in another city._

[George Burns](http://www.quotationspage.com/quotes/George_Burns/), [US actor & comedian (1896 - 1996)](https://en.wikipedia.org/wiki/George_Burns)

## My Articles
### My “IT-Tage 365” Talk

The conference was well-organized and ran over Zoom. My talk was the last one of the day, so my audience’s enthusiasm was noticeably dampened - I got no questions! Either that or I gave a really boring presentation.

[Talk page](https://betterprojectsfaster.com/learn/talks-it-tage-2021-long-java-front-ends/)

## Bookmarks

### Java

#### AdoptOpenJDK Gets Eclipse Working Group and Access to TCK

After [three months in community review](https://betterprojectsfaster.com/blog/weekly-links-2020-12-28#eclipse-adoptium-projects-ready-for-community-reviewhttpsblogadoptopenjdknet202012eclipse-adoptium-projects-ready-for-community-review), the [leading OpenJDK distribution AdoptOpenJDK](https://snyk.io/blog/36-of-developers-switched-from-oracle-jdk-to-an-alternate-openjdk-distribution-over-the-last-year/) now has an Eclipse Working Group. That’s part of its move to become [Adoptium at Eclipse](https://projects.eclipse.org/projects/adoptium). 

At least, I **think** it’s another step on the road there. But I’m not sure: The [project downloads page](https://projects.eclipse.org/projects/adoptium/downloads) is still empty, but the press release is sufficiently vague, and it’s Eclipse. These guys couldn’t write [decent release notes for their own IDE](https://betterprojectsfaster.com/blog/weekly-links-2020-12-21#eclipse-ide-2020-12httpswwweclipseorgeclipseide2020-12) if their life depended on it!

One interesting piece of news was that Adoptium now can use the official JDK tests (the so-called TCK suite). This will lead to better Java releases from AdoptOpenJDK/Adoptium! So Eclipse managed to twist Oracle’s arm here in a way AdoptOpenJDK never could. Kudos!

[Press release](https://www.globenewswire.com/news-release/2021/03/23/2197486/0/en/Open-Source-Software-Leader-the-Eclipse-Foundation-Launches-the-Adoptium-Working-Group-for-Multi-Vendor-Delivery-of-Java-Runtimes-for-Enterprises.html), [Adoptium project page](https://projects.eclipse.org/projects/adoptium)

### Frameworks

#### JRebel’s 2021 Microservices Developer Report

This report is old news from February 18 this year. But it still has some juicy bits. For instance, it claims that microservices adoption stalls at 49% (vs. 50% last year), while monolith adoption surged from 27% last year to 42% this year. Did they maybe just ask a more conservative bunch of developers this year? Or are microservices really in the “Trough of Disillusionment” from [Gartner’s hype cycle](https://en.wikipedia.org/wiki/Hype_cycle#/media/File:Gartner_Hype_Cycle.svg)? 

I personally believe microservices help you solve organizational and technical challenges at the cost of increased complexity. What challenges? You know, like the inability to coordinate code releases across your organization, or vastly different scaling needs. And what complexity? Well, microservices are distributed computing - and the first rule of distributed computing is: “Don’t!” 😌

So, go for microservices if you have these organizational and/or technical challenges. If you don’t, then stay away and keep your monolith. A [well-structured one](https://fgiesen.wordpress.com/2015/07/22/the-modulith/), of course!

[Report link](https://www.jrebel.com/blog/2021-microservices-developer-report)

#### Spring Turns 17

Has it really been 17 years? And is that the original Spring 1.0 blog post from 2004? “Yes” is the answer to both questions. Time wasn’t kind to the blog post, though: It had at least one Content Management System (CMS) migration too many. The hard-coded line breaks look wrong even on a phone today…

Time was much kinder to Spring itself: At age 17, it still rules the Java world (see “JRebel 2021 Java Technology Report“ in [issue 27](https://bpfnl.substack.com/p/how-to-build-java-applications-today-4b3)). And with Spring Native looking quite promising (see “Kicking Spring Native's Tires“ in [last week’s issue](https://bpfnl.substack.com/p/how-to-build-java-applications-today-762)), chances are that Spring can fend off competitors old and new for a couple more years.

Spring ushered in an era of simpler enterprise Java. Now whether you use the Spring or one of its competitors, you reap the benefits of those advances either way. Thank you, Spring!

[Blog post from 2004](https://spring.io/blog/2004/03/24/spring-framework-1-0-final-released)

### Releases

#### IntelliJ IDEA 2020.3.3

“Do you trust this project?” - “Hell no, I wrote it six months ago!”

Apparently, I’m not alone here: IntelliJ IDEA now asks us if we trust the project we’re about to open. Why? Just opening a project in IntelliJ already triggers build scripts - and they could be malicious! And “malicious” can mean “bad guys steal our data” - or “doing what I programmed it to do six months ago”…

Anyhow, IntelliJ now lets us open the project, keep it closed, or preview it in safe mode (where no project code is executed).

I don’t know whether throwing another “Are you sure?” dialogue our way solves this problem. I think usability research shows that most people happily “click away” this kind of dialogue without thinking much about it. It’s better to give us users a chance to undo a dangerous action instead, **after** realizing our mistake. That’s what the recycle bin for deleted files is - an undo.

Unlike pulling deleted files out of the recycle bin, we can’t easily undo the damage of running malicious build scripts. So I see where IntelliJ’s in a pickle here. And I applaud them for taking the first step to fix this. To be continued, I’m sure.

[Announcement](https://blog.jetbrains.com/idea/2021/03/intellij-idea-2020-3-3/)

#### Jetty 11

“One of the world’s most widely deployed web server and servlet containers“ just released version 11: Jetty. Or as it’s also known: “One of these other servlet containers in Spring Boot when you don’t want Tomcat”. 

The headline feature is that it’s “fully compatible with the Jakarta EE 9 Servlet specifications“. In other words: [It’s Servlets 4.0 from September 2017](https://en.wikipedia.org/wiki/Jakarta_Servlet#History), repackaged once as “Jakarta EE 8” and repackaged once more as “[Jakarta EE 9](https://betterprojectsfaster.com/blog/weekly-links-2020-11-23#jakarta-ee-9httpswwwinfoqcomnews202011jakarta-one-conference-2020)” late last year. To be fair, the “javax.*” in Jakarta EE 8 were renamed to “jakarta.*” in Jakarta EE 9\. Progress!

[Press release](https://newsroom.eclipse.org/news/announcements/eclipse-foundation’s-eclipse-jetty-project-prepares-future-jetty-11-release)

#### Open Liberty 21.0.0.3

At least Jetty’s an **option** in Spring Boot. IBM’s Open Liberty wishes it was! Instead, all it can tout in its latest release is support for [MicroProfile 4.0](https://betterprojectsfaster.com/blog/weekly-links-2021-01-04#whats-new-in-microprofile-40httpswwwinfoqcomnews202012whats-new-in-microprofile-4), bug fixes - and a version number that violates [semantic versioning](https://semver.org). Really, IBM, a minor version and a patch version weren’t enough for you, and you had to add a “third dot“ there?!

Well, the punishment for such gross version negligence seems to be non-adoption: JRebel’s application server market share survey puts you in the “Other” category with a combined 6% (see “JRebel 2021 Java Technology Report“ in [issue #27](https://bpfnl.substack.com/p/how-to-build-java-applications-today-4b3)). If it’s any consolation: Big brother WebSphere’s at 14% application server market share. And little brother Quarkus has 6% in Java Application Frameworks.

[Blog post](https://openliberty.io/blog/2021/03/19/microprofile-4-21003.html)

## About

Karsten Silz is the author of this newsletter. He has been a Java developer for 22 years.

He grew up in East Germany, behind the Iron Curtain. He wrote his first BASIC program on a Sinclair Spectrum ZX81 in 1984 and never looked back. He got a Master's degree in Computer Science from the Dresden University of Technology in 1996.

Karsten has developed software in five European countries and the U.S. since 1996\. In 2004, he co-founded a software product start-up in the U.S. The product reached an 80% market share in the North American cable TV industry. During power outages, it protected TV, Internet, and phone services for 50 million households. Karsten led product development for 13 years and left after the company was sold successfully.  

Since 2017, he has worked as a full-stack Java contractor for web (Angular) and mobile (Flutter) in Germany and the U.K. He co-founded the SaaS start-up "[Your Home in Good Hands](https://yourhomeingoodhands.co.uk/)" as CTO in the U.K. in 2020. 

Karsten has [this newsletter](https://bpfnl.substack.com/), a [developer website](https://betterprojectsfaster.com/), and a [contractor site](https://ksilz.com/). He's on [LinkedIn](https://www.linkedin.com/in/ksilz/), [Twitter](https://twitter.com/karsilz), and [GitHub](https://github.com/ksilz).