Home » Java (page 20)

Java

JDK 13: What AggressiveOpts?

The Java VM flag -XX:+AggressiveOpts was deprecated in JDK 11 [see JDK-8199777 and JDK-8199778] “because its behavior is ill-defined.” The “Problem” section of JDK-8199778 further explains (I added the emphasis): AggressiveOpts has been used as a catch-all method of enabling various experimental performance features, mostly targeted to improve score on very specific benchmarks. Most things it affected has been removed ...

Read More »

Conversational UI with Oracle Digital Assistant and Fn Project. Part II

java-interview-questions-answers

In my previous post I implemented a conversational UI for  FlexDeploy with Oracle Digital Assistant. Today I am going to enrich it with Fn Flow so that the chatbot accepts release name instead of id to create a snapshot. Having done that the conversation will sound more natural: …“Can you build a snapshot?” I asked.“Sure, what release are you thinking of?”“Olympics ...

Read More »

Spring Data Redis: High-Availability with Sentinel

1. Overview For high-availability with Redis, we can use Spring Data Redis’ support for Redis Sentinel. With Sentinel, we can create a Redis deployment that automatically resists certain failures. Redis Sentinel also provides other collateral tasks such as monitoring, notifications and acts as a configuration provider for clients. At a high level, Sentinel’s capabilities are: Automated failover. When a master ...

Read More »

Spring Custom Serializers with @JsonIdentityInfo

spring-interview-questions-answers

Intro Serialization/Deserialization from/to JSON in Spring is widely used in modern Spring-based applications. It is based on Jackson. Jackson can serialize any POJO into JSON and vice versa with ease. This code is well written. I never encountered any issues. It gets more difficult when custom serializers are involved. This post shows how to use custom serializers in Spring with ...

Read More »

Tutorial: Create and Verify JWTs in Java

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Java support for JWT (JSON Web Tokens) used to require a lot of work: extensive customization, hours lost resolving dependencies, and pages of code just to assemble ...

Read More »

Apache Payara: Let’s Encrypt

java-interview-questions-answers

Some time ago, I wrote a small tutorial on how you can generate Let’s Encrypt SSL certificates and install them on your Glassfish Java EE Platform. That trick worked wonders for me but having to manually renew and reinstall the certificates every three months became quite annoying. I did a little research and, same as the first tutorial, this one ...

Read More »

Upload and Download files to S3 using maven

Throughout the years I’ve seen many teams using maven in many different ways. Maven can be used for many ci/cd tasks instead of using extra pipeline code or it can be used to prepare the development environment before running some tests.Generally it is convenient tool, widely used among java teams and will continue so since there is a huge ecosystem ...

Read More »

API Gateways Are Going Through an Identity Crisis

java-interview-questions-answers

API Gateways are going through a bit of an identity crisis these days. Are they centralized, shared resources that facilitate the exposure and governance of APIs to external entities?Are they cluster ingress sentries that tightly control what user traffic comes into the cluster or leaves it?Or are they some kind of API coalescing glue to more succinctly express an API ...

Read More »

JMetro Version 5.2 Released

Hello again A new update to JMetro has just been released. Two new control styles were added: Titled Pane and Accordion. In addition there have also been tweaks to existing styles and bug fixes. Finally JMetro is now also available through Maven Central. In this post I’ll go into more detail about the just release JMetro version 5.2. JMetro version ...

Read More »