Home » Java » Page 20


JAR File Handles: Clean Up After Your Mess!

In Ultra ESB we use a special hot-swap classloader that allows us to reload Java classes on demand. This allows us to literally hot-swap our deployment units – load, unload, reload with updated classes, and phase-out gracefully – without restarting the JVM. Windows: supporting the forbidden land In Ultra ESB Legacy the loader was working fine on Windows, but on ...

Read More »

Become a Master of Java Streams – Part 2: Intermediate Operations

Just like a magic wand, an Intermediate operation transforms a Stream into another Stream. These operations can be combined in endless ways to perform anything from simple to highly complex tasks in a readable and efficient manner. This article is the second out of five, complemented by a GitHub repository containing instructions and exercises to each unit. Part 1: Creating ...

Read More »

The Problem With Creating Generic Arrays

In this post, we feature a comprehensive article which explains the Problem with creating Generic Arrays. The Java programming language added generics in September of 2004 in the Java 5.0 “Tiger” release. The system of generics or type parameterization, extends Java’s existing type system while providing type safety. 1. Introduction Java has the Collections Framework, providing a library of generic ...

Read More »

Secure Reactive Microservices with Spring Cloud Gateway


Friends don’t let friends write user auth. Tired of managing your own users? Try Okta’s API and Java SDKs today. Authenticate, manage, and secure users in any application within minutes. So you wanna go full reactive, eh? Great! Reactive programming is an increasingly popular way to make your applications more efficient. Instead of making a call to a resource and ...

Read More »

OutOfMemoryError related JVM arguments

JVM has provided helpful arguments to deal with OutOfMemoryError. In this article, we would like to highlight those JVM arguments. It might come handy for you when you are troubleshooting OutOfMemoryError. Those JVM arguments are: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath-XX:OnOutOfMemoryError-XX:+ExitOnOutOfMemoryError-XX:+CrashOnOutOfMemoryError Let’s discuss these JVM arguments in detail in this article. (1). XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath Heap dump is basically a snapshot of memory. It contains details ...

Read More »