Home/Bikram Kundu

About Bikram Kundu

I am a Software Craftsman, with slightly more admiration towards design and architecture. Among the few and far developers with proficiency in Java & JavaScript. I am equally in love with SkillIQ and RoleIQ.

Mapping and Injecting Collections in Spring

Spring Framework supports the injection of the Java Collection types List, Set, Map and Properties. You can use XML as well as annotations based configurations. We will learn Constructor, Setter, and Field injections for the collections using annotations based configurations in this article. The complete code example is available in the GitHub code repository. I recommend understanding the basics of [...]

By |2020-01-22T08:00:43+00:00January 22nd, 2020|Categories: Java™, Spring Framework|Tags: , |

Spring bean Lifecycle Callbacks

In this article, you will learn the Spring bean lifecycle and different ways to run bean initialization callbacks and bean destruction callbacks. Bean lifecycle simply means you want to execute callbacks before the spring bean is available to use and similarly execute callbacks before the bean is destroyed. There are several ways to configure the Spring bean lifecycle callbacks as [...]

By |2020-01-17T08:06:57+00:00January 17th, 2020|Categories: Java™, Spring Framework|Tags: , , |

Spring Bean Scopes – @Scope annotation

In this article, you will learn about Spring Bean Scopes using @Scope annotation and XML configurations. If you are new to Spring, make sure you understand Dependency Injection in Spring. Creating a bean means, you create the actual instance of the class with the dependencies injected based on the bean definition. Bean definition is like a recipe, you can create [...]

By |2020-01-13T07:45:33+00:00January 13th, 2020|Categories: Java™, Spring Framework|Tags: , |

Inversion of Control and Dependency Injection in Spring

Inversion of Control (IoC) and Dependency Injection (DI) are programming patterns for decoupling the Class dependencies. In this article, we will talk about IoC and DI with respect to Spring Framework. Read High Level introduction of Spring Framework if you are new to Spring. 1. What is Inversion of Control (IoC)? For simplicity, let's say class Vehicle is dependent on [...]

By |2020-01-08T07:49:28+00:00January 8th, 2020|Categories: Java™, Spring Framework|Tags: , , , |

A high-level introduction to Spring Framework

What is the Spring Framework? The age-old answer to this question is, "Spring is a Dependency Injection Framework". In reality, it is much more than that. Spring is the most popular Java Enterprise application development framework, it comes with many tools and libraries to solve almost any problem in the java world. May it be microservices or a simple database-driven [...]

By |2020-01-04T12:45:16+00:00January 4th, 2020|Categories: Java™, Spring Framework|Tags: , |

A Complete JMS 2.0 Tutorial

JMS stands for Java Message Service which is a standard for accessing messaging middleware servers in Java. Messaging is a process of exchanging Business data across various applications or services. This is A Complete JMS 2.0 Tutorial with great code examples. Complete code example is available on GitHub, please download and run the examples. The tutorial uses Glassfish opensource Server as [...]

By |2020-01-01T13:29:27+00:00January 1st, 2020|Categories: Java™, JMS|Tags: , |

JMS Transactions in Action

In this article, you will learn about optionally using JMS Transactions. In JMS, a session you can optionally control the atomic operations. Each of these sessions supports a single series of transactions. Each transaction groups a set of produced or consumed messages into an atomic unit of work. Make sure you have understood Message Acknowledge in JMS. When the Transaction [...]

By |2019-12-30T13:51:09+00:00December 30th, 2019|Categories: Java™, JMS|Tags: , , |

Guaranteed Delivery using JMS Message Acknowledgement

JMS ensures guaranteed message delivery through JMS Message Acknowledgement (Acknowledge modes). If a session is transacted, message acknowledgment is handled automatically by the commit() method. Otherwise, the recovery is handled by the rollback() method. In this article, we will assume that the session is not transacted. This is an advance topic, make sure you have a basic understanding of JMS. [...]

By |2019-12-30T10:25:19+00:00December 30th, 2019|Categories: Java™, JMS|Tags: , , |

JMS Message Selectors in Action to Filter Messages

Quite often messages delivered to the receiver need to be filtered based on certain criteria. JMS provides message selectors that allow a JMS Consumer to specify the messages it is interested in, based on the message header. In this article, you will learn JMS Message Selectors to Filter Messages. This is an advance tutorial, please make sure you have a [...]

By |2019-12-28T13:30:40+00:00December 28th, 2019|Categories: Java™, JMS|Tags: , , , |

JMS pub-sub messaging model

In this article, you will learn the JMS pub-sub (publish-subscribe) messaging model. As you read in the JMS introduction article, in a Pub/Sub model, the client sends a message to multiple receivers via an intermediator called Topic. The sender is often referred as Publisher and the receiver as Subscribers. JMS pub/sub messaging example Below is a simple code example that [...]

By |2019-12-27T06:43:18+00:00December 25th, 2019|Categories: Java™, JMS|Tags: , , |