Java Articles by Foojay.io

April, 2024

  • 30 April

    Five ways to pass parameters to Apache APISIX

    I recently read 6 Ways To Pass Parameters to Spring REST API. Though the title is a bit misleading, as it’s unrelated to REST, it does an excellent job listing all ways to send parameters to a Spring application. I want to do the same for Apache APISIX; it’s beneficial when you write a custom plugin. General setup The general …

    Read More »
  • 29 April

    JavaFX Links of April 2024

    Here is the overview of the JavaFX LinksOfTheMonth of April 2024, published on jfx-central.com during this month. Core Gluon published new releases of JavaFX: 22.0.1 and the LTS releases 17.0.11 and 21.0.3. You can get them from Maven Central and the Gluon website. The new builds of Java and JavaFX, that were released this week, contain several fixes related to …

    Read More »
  • 29 April

    Why This JCON Europe Talk Is Unmissable (Part 1)

    JCON Europe in Cologne is around the corner (and here are your free Foojay JCON tickets), May 13 to 16. Why should you go? Well, one reason is that the talks will be awesome. Here’s the start of a series of reasons why some of them are absolutely unmissable! DevOps for Java Developers (Or Maybe Against Them?!) – Baruch Sadogursky …

    Read More »
  • 25 April

    Java: Functional Programming f(x) – Part1

    Mathematics serves as the driving force behind significant advancements in computer science from my perspective. We deeply root the fundamental principles that we utilize in our daily programming tasks and application development in mathematical concepts. I am constantly intrigued by the opportunity to incorporate mathematical ideas into the programming languages I work with as a student of Mathematics. Many other …

    Read More »
  • 25 April

    The High Availability Features of Microservices using Chronicle Services

    In low-latency microservices, ensuring system resilience without compromising performance is vital. This article explores how Chronicle Services, a Java-based framework optimised for low-latency microservices, meets these critical requirements by integrating HA, performance, and data persistence. Stateful and Stateless Services A Chronicle Service application consists of a number of processing units known as Services, which interact with each other using events …

    Read More »
  • 24 April

    Hello eBPF: Generating C Code (8)

    Welcome back to my series on ebpf. In the last article, we learned how to auto-layout struct members and auto-generate BPFStructTypes for annotated Java records. We’re going to extend this work today. This is a rather short article, but the implementation and fixing all the bugs took far more time then expected. Generating Struct Definitions We saw in the last …

    Read More »
  • 23 April

    Using my new Raspberry Pi to run an existing GitHub Action

    Recently, I mentioned how I refactored the script that kept my GitHub profile up-to-date. Since Geecon Prague, I’m also a happy owner of a Raspberry Pi: Though the current setup works flawlessly – and is free, I wanted to experiment with self-hosted runners. Here are my findings. Context GitHub offers a large free usage of GitHub Actions: GitHub Actions usage …

    Read More »
  • 22 April

    Debug Without Breakpoints

    In a typical debugging scenario, you would set breakpoints to tell the debugger when to suspend your program. A breakpoint usually corresponds to the moment that marks the starting point of the further investigation. However, in some situations you aren’t certain about where to set a breakpoint. Other times, you might prefer to suspend the program at a particular time …

    Read More »
  • 18 April

    Debugging Using JMX Revisited

    The Need for Advanced Management Tools in Development Introduction to JMX (Java Management Extensions) Understanding MBeans Spring and Management Beans Tooling for JMX Management Getting Started with JMXTerm Leveraging JMX in Debugging and Management Exposing MBeans in Spring Boot Understanding Spring Boot JMX Support Expose an MBean in Spring Boot Example: Exposing a Simple Configuration MBean Final Word Debugging effectively …

    Read More »
  • 16 April

    Smarter Logging in Spring Boot with AOP

    Hey AOP fan, after explaining the basics of AOP in Part 1, we will dive deeper and demonstrate hands-on how to implement smart logging in Spring Boot using AOP. The complete example can be found on GitHub. The Problem with Logging Everywhere As software developers, we know the importance of logging . But scattering log statements everywhere comes with drawbacks: …

    Read More »