Introduction to Apache Curator 1. Introduction Apache Curator is a Java client for Apache Zookeeper, the popular coordination service for distributed applications. In this tutorial, we’ll introduce some of the most relevant features provided by Curator: Connection Management – managing connections and retry policies Async – enhancing existing client by… Continue Reading apache-curator

Java Weekly, Issue 234 Here we go… 1. Spring and Java ===== >> Monitor and troubleshoot Java applications and services with Datadog Sponsored Optimize performance with end-to-end tracing and out-of-the-box support for popular Java frameworks, application servers, and databases. Try it out.  >> Refactoring to Eclipse Collections: Making Your Java Streams… Continue Reading java-weekly-234

Non-blocking Spring Boot with Kotlin Coroutines 1. Overview Kotlin Coroutines can often add readability to reactive, callback-heavy code. In this tutorial, we’ll find out how to leverage these coroutines for building non-blocking Spring Boot applications. We’ll also compare the reactive and coroutine approaches. 2. Coroutine Motivation Nowadays, it is common for… Continue Reading spring-boot-kotlin-coroutines

HibernateException: No Hibernate Session Bound to Thread in Hibernate 3 1. Introduction In this short tutorial, we’ll clarify when “No Hibernate Session Bound to Thread” exception gets thrown and how to resolve it. We’ll be focusing here on two different scenarios: using the LocalSessionFactoryBean using the AnnotationSessionFactoryBean 2. The Cause… Continue Reading no-hibernate-session-bound-to-thread-exception

Scheduling in Java EE 1. Overview In a previous article, we demonstrated how to schedule tasks in Spring using * @Scheduled *__ annotation. In this article, we will demonstrate how to achieve the same by using the timer service in a Java Enterprise Edition application for each case presented in… Continue Reading scheduling-in-java-enterprise-edition