If you use OpenLiberty Java Application Server, you should be careful when maintaining a cipher list. See what happens if you are not careful. Now,…
Bens IT-Comments
Thoughts from and to the IT crowd
Java is a easy-to-learn and modern programming language, which has evolved since the nineties.
Not to be confused with its runtime, the JVM (Java Virtual Machine).
If you use OpenLiberty Java Application Server, you should be careful when maintaining a cipher list. See what happens if you are not careful. Now,…
The Apache Maven team is pleased to announce the release of the Apache Maven JLink Plugin, version 3.1.0.
This plugin is used to create a JLink distribution using Maven. It is as easy as creating a jar file, but will instead create a zip file containing a reduced Java Runtime along with a launcher script, as well as the actual application of course. A JLink zip file is therefore platform dependent.
Whenever you pull in SnakeYAML (either directly or via Jackson), you will break your modulear builds. The reason: SnakeYAML is a named automatic module. But then, automatic modules cannot be used in jlink
images.
But this can be healed. You can rescue your builds using the moditect-maven-plugin
. It is a little hard to use, as the documentation is very technical. It also has few examples, and the documentation does not explain when to use which goal, and how to proceed. So, if you want to see a simple example, read on! 🙂
If you want to integration-test your Maven project, you might already use GitHub Actions.
Testing with a Maven toolchain is a little more complex to set up. This tutorial will show how I did this for the maven-jlink-plugin.
Have you ever wondered how your program will connect to other hosts?
Well, I can tell you the answer for Java (any version) and compare it to Python. It is a 90’s implementation, and there is not even a good way to fix it.
Here is a list of my top 10 OpenLiberty hidden features. They are not the “best” features by any means of »hidden knowledge«, but they are the most handy features I use regularly not everyone knows about. YMMV. 😉
Glowroot is a lightweighted but feature-rich java VM agent, which will allow you to collect and evaluate metrics from almost any VM. For larger setups, you might want to install a central collection instance. This guide covers how to set up Glowroot Central on OpenLiberty, a lightweigt and extremely fast Java Application Server (aka Servlet Container).
Json-B (not JSONB!), short for Json Binding, is a modern MicroProfile Java standard to convert json documents (json messages) to a java class and vice versa.
This standard is supported by most modern java application containers. But because of a definition gap in the Jax-RS standard, it is not as easy as initially thought to get proper and helpful error messages if an invalid JSON document is encountered in the POST
request body of an endpoint. The ExceptionMapper
will only work after applying a few tricks.
Developing a spigot plugin is easy, if you have used the Java programming language before. So, do you love playing Minecraft as I do? Are you a developer? There is a good chance that you are already running spigot as your server, which supports plugins using their own API. If you would like to develop your own plugin, you might get lost — there is not much in the way of good tutorials. In this article, I will try to explain the basic components of spigot, how to set up your development environment and how to get started.