Spring Beanfactory and ApplicationContext

Spring BeanFactory and ApplicationContext are interfaces responsible for configuring a Spring application. BeanFactory is the main interface for accessing the spring container and acts as a central registry of all components. BeanFactory along with its subinterfaces are also responsible for implementing dependency injection. An ApplicationContext extends the functionality of a BeanFactory and provides additional methods. … Read more

Java CompletableFuture

What is Java CompletableFuture? Java CompletableFuture is used when you have a task that needs to be run asynchronously and you want to wait for the task to complete and obtain a value OR to force a task to complete. It also allows chaining multiple tasks together or executing a task after a few other … Read more

Multiple ssl certificates on Tomcat using SNI

In this tutorial, we will look at installing multiple SSL certificates on Tomcat using SNI. Tomcat 8.5.x allows you to install a separate SSL certificate for each virtual host in your tomcat installation. This works with a single IP because of the SNI feature in Tomcat 8.5.x and Java 8. (Java has implemented SNI since … Read more

Install Apache Tomcat Native

Steps to install apache tomcat native and its dependencies If you are using Apache Tomcat in production then it would be good to install Apache Tomcat native library as it has some optimizations for production use. Below are the steps to install it. The steps were performed on an AWS EC2 instance (Amazon Linux), but … Read more

AWS VPC Tutorial – Part II subnets

In this AWS VPC tutorial, we will look at how to create the VPC, public and private subnets, route table, and an internet gateway. AWS VPC Tutorial – Recap In the previous tutorial we saw an introduction to Amazon VPC and also looked at the key concepts in VPC. Here’s the diagram of what we … Read more

Java Magazine January – Febrary 2017

Here’s the Java magazine for Jan – Feb 2017. It Covers the Following Topics: What topics does Java Magazine Jan – Feb 2017 cover A look at Polygot Maven Configuration. Java and JVM tools Design and Construction of modern build tools Creating Debugging Tools Blockchain, Scala, Java in containers [pdf-embedder url=”https://s3.amazonaws.com/java-resources/Java+Magazine+JanuaryFebruary+2017.pdf”]

Java Magazine Nov – Dec 2016

Here’s the Java magazine Nov – Dec 2016. The focus on this magazine is JUnit 5. It Covers the Following Topics: What topics does Java Magazine Nov – Dec 2016 cover A look at how NetBeans is moving away from Oracle to Apache Software Foundation. An interview with the creator of JUnit 5 – Kent … Read more

AWS VPC Tutorial Part III Elastic IP and NAT

In this AWS VPC Tutorial, we will learn how to create an Elastic IP address, a NAT Gateway, and accessing the internet from private subnet using the NAT gateway. This is the third in the 3-series tutorial, the first tutorial introduced the key concepts and tutorial problem and the second tutorial looked at creating VPC, … Read more

AWS VPC Tutorial – Part I Introduction

In this AWS VPC tutorial, we will learn how to create a VPC; create public and private subnets that cover Multiple Availability zone; create CIDR blocks for each subnet; add Internet Gateways and NAT Gateways, and modify route table. AWS VPC Tutorial – Introduction to Concepts What is AWS VPC Amazon VPC is your own … Read more