Prototype Design Pattern in Java

The prototype design pattern works on the concept of cloning the object, which helps in the creation of complex objects in a very quick time. In other words, the Prototype copies the content and data of one object into a new unique object rather than creating a whole new object from scratch. In the creational design patterns, the prototype design [Read More]

By |2020-05-09T15:29:19+00:00February 12th, 2020|Categories: Java™|Tags: |

Builder Design Pattern in Java

Builder Design Pattern solves the problem of constructing complex objects. In simple words, a situation when a class is having complex constructors or multiple numbers of parameters, it really becomes difficult to create objects in the same manner as the parameters are defined. Builder pattern solves the above problem through handling the situation by an object, rather than the multiple [Read More]

By |2020-05-09T15:34:50+00:00January 29th, 2020|Categories: Java™|Tags: |

Abstract Factory Design Pattern in Java

Abstract Factory Design pattern comes under the creational patterns and it shows many similarities to the Factory Pattern. The abstract factory works as a factory of factories which generates other factories by providing an extra abstraction layer. The generated factory from an abstract factory pattern always generates the object as per the factory design pattern. In other words, We can [Read More]

By |2020-05-09T15:37:05+00:00January 24th, 2020|Categories: Java™|Tags: , |

Getting Started with log4j2

Introduction Hello Geeks.! This tutorial will explain the basic idea about the log4j2, it's uses and the main reasons to upgrade to log4j2 from log4j. Let's get started with the introduction of log4j2 along with the step by step implementation and configuration tuning in this log4j tutorial. 1. Architecture of log4j2 Applications using Log4j2 will request a Logger with a [Read More]

By |2020-01-20T13:40:51+00:00January 19th, 2020|Categories: Java™|Tags: |

Singleton Design Pattern in Java

Singleton works on the concept of one and only one instance of the object, which results in the global control of a resource. In simple words, the Singleton design pattern ensures that only one instance of the class will be created and that instance will have global access within the application. Singleton Design pattern is the most extensively used design [Read More]

By |2020-05-09T15:26:30+00:00January 18th, 2020|Categories: Java™|Tags: |

Factory Design Pattern in Java

The Factory design pattern is a part of the creational design pattern. It works on the concept of Encapsulation by hiding the object's instantiation logic from the client. The factory Design pattern is the second most used design pattern in the creational patterns category, after the singleton pattern. The factory pattern is just opposite to the concept of the singleton [Read More]

By |2020-05-09T15:31:58+00:00January 14th, 2020|Categories: Java™|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 [Read More]

By |2021-02-21T03:06:35+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 [Read More]

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. [Read More]

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 [Read More]

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