Posts tagged Java (2)

Nugget Friday - Simplifying Multiline Strings with Java Text Blocks

Working with multiline strings in Java has historically been a challenge, often resulting in messy code that is hard to read and maintain. Whether you're dealing with SQL queries, JSON or HTML templates, managing escape characters and manual line breaks is a cumbersome process. In today's Nugget Friday, we'll look at how Text Blocks can redefine how developers handle multiline strings, making code cleaner, more readable and easier to maintain.

Improving Responsiveness in Jakarta REST (JAX-RS) Services through Asynchronous Processing

Speed and responsiveness are very important in the development and use of modern RESTful APIs in Java applications, as they help ensure efficiency and scalability, especially as businesses move towards cloud-native applications. The primary means of achieving high speed, responsiveness, efficiency and scalability is through asynchronous processing. It allows applications to handle requests efficiently and perform tasks without getting stuck, making things run smoother and faster for the user while supporting scalability.

In this post, we'll look at how asynchronous processing works in Jakarta RESTful Web Services (JAX-RS or Jakarta REST) and how to implement async patterns in JAX-RS to enhance your Java web services, so you can build powerful and scalable RESTful APIs in Java.

Join Live Webinar - Jakarta EE 11: What’s Next for Enterprise Java

Join us for this informational webinar lead by Tanja Obradovic, Java Programs Senior Manager at Eclipse Foundation and Andrew Pielage, Senior Software Engineer at Payara, where we’ll explore what’s coming in the highly anticipated Jakarta EE 11 release.
 
Designed to keep enterprise Java modern, productive, and aligned with the latest advancements in the Java ecosystem, Jakarta EE 11, coming in Autumn this year, introduces powerful new features, including support for Java SE 21 Virtual Threads, and Jakarta Data for simplified, cloud-native data access.

Jakarta EE 11: What’s Next for Enterprise Java

Monday, 30th of September, 2pm BST

Register: https://www.crowdcast.io/c/jakarta-ee-11-whats-next

Nugget Friday: Simplify Module Imports in Java 23

Welcome to this week’s Friday Nugget! In today’s post, we’re focusing on a new feature coming in Java 23 that’s set to make your coding life a little easier, especially if you’ve ever found yourself frustrated by the clutter of import statements: module import declarations. By leveraging such tool, you can streamline your Java code, reduce verbosity and enhance readability, making your development process more efficient.

 

Payara Platform Roadmap Update - August 2024

Now that we're eight months into 2024 (already!?), and in the middle of summer, it seems like a good time to catch up and update you on the Payara Roadmap for 2024 - let's see what we've done and what we are still planning to do for the rest of the year and beyond.

You can also watch the Payara Roadmap Update presented at the Virtual Payara Conference last month.

Nugget Friday - Statements Before super()

As Java developers, we’ve long grappled with the constraints of constructor logic and initialization.  In the past, if you needed to perform any operations before invoking the superclass constructor (via super()) in any class, you were often forced to rely on helper methods or extra constructors. This mostly ended up with cluttered, hard to read code as you needed to duplicate constructors or find workarounds. Let's look at how to address this in today's Nugget Friday!

Nugget Friday - InputStream To String Post Java 9

It's Nugget Friday again, and we're excited to bring you another valuable titbit to our beloved coders! In this instalment of our Friday Nugget series, we're diving into a common yet essential task for developers, especially when handling data read from a file, network or database: converting an InputStream to a String in Java. Knowing how to do this is crucial for efficiently managing IO and data processing tasks.