Java Flow Control Interview Questions (+ Answers) 1. Introduction Control flow statements allow developers to use decision making, looping and branching to conditionally change the flow of execution of particular blocks of code. In this article, we’ll go through some flow control interview questions that might pop up during an… Continue Reading java-flow-control-interview-questions

Spring Persistence (Hibernate and JPA) with a JNDI datasource Persistence Spring 1. Overview In this article, we’ll create a Spring application using Hibernate/JPA with a JNDI data source. If you want to read discover Spring and Hibernate basics, check out this article. 2. Defining a Datasource 2.1. System Since we’re… Continue Reading spring-persistence-hibernate-and-jpa-with-a-jndi-datasource

Concurrent Strategies using MDBs 1. Introduction Message Driven Beans, also known as “MDB”, handle message processing in an asynchronous context. We can learn the basics of MDB in this article. This tutorial will discuss some strategies and best practices to implement concurrency using Message Driven Beans. If you want to understand… Continue Reading ejb-message-driven-bean-concurrency

Basic Authentication with the RestTemplate Table of Contents * 1. Overview * 2. Setting up the RestTemplate in Spring * 3. Manual management of the Authorization HTTP header * 4. Automatic management of the Authorization HTTP header * 5. Maven dependencies * 6. Conclusion 1. Overview This article shows how… Continue Reading how-to-use-resttemplate-with-basic-authentication-in-spring

Spring Security – Cache Control Headers 1. Introduction In this article, we’ll explore how we can control HTTP caching with Spring Security. We’ll demonstrate its default behavior, and also explain the reasoning behind it. We’ll then look at ways to change this behavior, either partially or completely. 2. Default Caching… Continue Reading spring-security-cache-control-headers