JAVA

Spring Retry in Action

Overview In a project, there might be a use case where you need to re-invoke a failed operation or call a method again on failure. Spring Retry provides declarative retry support for Spring applications. In this blog, we will configure and use Spring Retry logic using Spring Application. Install Dependencies Read more…

By Ashish, ago
Apache Tomcat

Session Replication in Tomcat

Overview In this blog, we will cover What is Session Replication? How to configure Session replication into multiple Server running in a Cluster. Session Replication When it comes to the high availability of Application, we generally run our server as a Cluster of multiple servers running using Load Balancer. But what Read more…

By Ashish, ago
Nginx

Configure Load Balancing with Nginx

Overview In this post, we will cover the following points What is Nginx? Install Nginx Configuring Nginx as a load balancer What is Nginx? NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. Install Nginx Once done start serevr using below command If Read more…

By Ashish, ago
JAVA

Bean Scope in Spring

Overview When defining a <bean> you have the option of declaring scope for that bean In this blog we will cover What are different types of Scope available in Spring.. Example for each scope type Types of Scope Scope Description singleton Scopes a single bean definition to a single object Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring without XML

Overview In previous blog we saw Dependency Injection in Spring using Annotation. Here we will see how we can do same using Annotation but without defining Autoscan in xml. We will make use of @Configuration and @Bean to define configuration same as we did for xml in above case. Configuration Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring using XML

Overview In my previous blog we saw an overview of Spring IoC and DI. Here we will see Dependency Injection (DI) in detail by answering following question: What is DI Ways of injecting Dependency using XML Dependency Injection Dependency Injection (DI) is a design pattern that removes the dependency from Read more…

By Ashish, ago
JAVA

Spring – An Overview

Overview Spring is a framework for dependency-injection which is a pattern that allows to build very decoupled systems. The Spring Framework is divided into modules. Applications can choose which modules they need. At the heart are the modules of the core container, including a configuration model and a dependency injection Read more…

By Ashish, ago