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.

Custom Events and Generic Events in Spring

Introduction: In this article, you will learn about Custom Events in Spring. Like many capabilities provided by the Spring framework, events are one of the most useful features provided by ApplicationContext in Spring. Spring allows you to publish/subscribe events synchronously as well as asynchronously. There are several standard Events in Spring as ContextRefreshedEvent, ContextStartedEvent, ContextStoppedEvent, ContextClosedEvent, RequestHandledEvent and ServletRequestHandledEvent. Spring [...]

By |2020-04-11T15:34:40+00:00April 11th, 2020|Categories: Spring Framework|Tags: , |

Profiles in Spring to register beans conditionally

In Spring Framework, profiles are logical groups of bean definitions that are registered only if the given profile is active. It is possible to assign a bean with multiple Profiles, separated with logical operations like not (!), and (&) and or (|) etc. Profiles in Spring are specified with the @Profile annotation in Spring. It is possible to use and [...]

By |2020-04-08T13:08:01+00:00April 7th, 2020|Categories: Spring Framework|Tags: , |

Spring @PropertySource to read property files

Introduction: The @PropertySource annotation in Spring provides a convenient and declarative mechanism for reading properties files. Properties files contain key-value pairs, e.g. app.log.level = DEBUG. In this article, you will learn to read a value from the property file using @PropertySource and access the specific values using @Value annotation and Environment field. If you are new to Spring, make sure [...]

By |2020-04-08T13:07:48+00:00April 6th, 2020|Categories: Spring Framework|Tags: , , |

IoC Container, Bean Factory vs Application Context in Spring

In this article, you will learn the differences between IoC Container, Application Context and the Bean Factory in Spring Framework. The Spring IoC container is the core of the Spring Framework. It creates the class instances, wires them together, configures them, and manages their complete life cycle from creation till destruction. The Spring container uses dependency injection (DI) to manage [...]

By |2020-04-08T13:07:34+00:00April 5th, 2020|Categories: Spring Framework|Tags: , |

Classpath Scanning using @ComponentScan and Filters

Introduction: A Classpath scanning basically means, detecting the classes that need to be managed by the Spring under a specified package. You need to make use of the spring @ComponentScan annotation with the @Configuration for classpath scanning. This annotation allows you to specify a base package and also a filter if needed to fine control the package scanning. We will [...]

By |2020-04-08T13:07:26+00:00April 4th, 2020|Categories: Spring Framework|Tags: |

Managed beans using @Component, @Repository, @Service

Introduction: In this tutorial, you will learn the different Spring stereotype annotations (@Component, @Repository and @Service) to declare any class as a Spring-managed Bean. Spring MVC also has several other annotations like @Controller and @RestController. The classes that are managed as beans in Spring are known as Managed Components. There are basically few stereotype annotations in spring that declare classes [...]

By |2020-04-24T18:27:11+00:00April 3rd, 2020|Categories: Spring Framework|Tags: |

Top Youtube Channels for every Java Developer

Everyone today wants to stay up to date in this ultra speed world, especially when it comes to programming knowledge. There were times when a Java developer could survive without much updating themself for years, but those days are gone. Today technology is evolving very fast, we need to sharpen our programming skills to stay relevant with the latest and [...]

By |2020-04-01T12:32:59+00:00April 1st, 2020|Categories: Java™|Tags: |

RabbitMQ with Spring AMQP and Spring Boot

In this tutorial, we will explore the use of Spring AMQP to communicate with the RabbitMQ messaging middleware. All the previous article code examples are based on the RabbitMQ-Java-Client library. Spring AMQP also makes use of the same library, however, it provides a practical oriented approach to communicate with RabbitMQ. If you are already familiar with Spring stack, then you [...]

By |2020-04-08T13:07:05+00:00March 31st, 2020|Categories: RabbitMQ, Spring Framework|Tags: , |

Complete RabbitMQ Tutorial in Java

Complete RabbitMQ Tutorial in Java with Spring Boot example This is a RabbitMQ Course in Java with asynchronous messaging examples using rabbitmq-java-client, Spring Boot and Spring AMQP. This is a programming course, it focuses more on the asynchronous programming than the admin UI. I have tried to keep the tutorial up-to-date with the latest Java trends. Code Examples [...]

By |2020-04-24T18:22:10+00:00March 28th, 2020|Categories: RabbitMQ|Tags: , |

Alternate Exchange to collect the rejected messages in RabbitMQ

You will learn to collect rejected messages in RabbitMQ. There can be several reasons to do that, for example, to track down the spammers in an Open CRM system. We will learn this with an example of a Topic Exchange, please check the previous article on Topic Exchange if you are new to RabbitMQ. What is Alternate Exchange? There will [...]

By |2020-04-24T18:22:27+00:00March 27th, 2020|Categories: RabbitMQ|Tags: |