Infrastructure as Code or IaC, as the name indicates, mainly relies on on perceiving infrastructure in the same way as any code which is why it is commonly referred to as programmable infrastructure. It simply provides means to define and manage the IT infrastructure by using configuration files. The IaC concept came into prominence because…

Posted in DevOps

What Is Infrastructure As Code Concept?

Table of Contents Introduction Prerequisites Project Setup Protect PDF using Password Testing Encrypted PDF Files Source Code Introduction This example is going to show you how to make pdf files password protected using Java programming language. Many applications require dynamic generation of PDF documents for reporting purpose, such as, generating statements for customers, readers buying…

Posted in Java

Make PDF Files Password Protected Using Java

Table of Contents Introduction Why do you want to connect to multiple database Prerequisites Project Setup Application Properties DataSource Configurations DAO Class Source Code Introduction Here I am going to show you how to connect to Oracle data source using JDBC LDAP URL. I am going to create multiple data sources for connecting to multiple…

Posted in Database Spring Boot Spring JDBC

Connecting To Multiple Oracle Data Sources Using JDBC LDAP URLs

Table of Contents Introduction What Is Dead Letter Queue Prerequisites Project Setup Application Properties Custom Exception Producer or Sender Consumer or Receiver Config Class Spring Boot Main Class Testing RabbitMQ Dead Letter Queue Source Code Introduction In this example I am going to show you how to retry the failed messages in RabbitMQ message broker….

Posted in RabbitMQ Spring Boot

Spring RabbitMQ Retry And Error Handling Example

Table of Contents Introduction Prerequisites Angular Project Settings Gradle Properties Spring Boot Project Build App Testing Angular Spring Boot Integration Source Code Introduction In this tutorial I will show you how to integrate Angular into Spring Boot using Gradle build tool. So, let’s say you have two different projects – Angular application and Spring Boot…

Posted in Angular Gradle Spring Boot

Integrate Angular into Spring Boot using Gradle

Table of Contents Introduction Prerequisites Angular App In Existing Folder Introduction In this example I am going to tell you how to create Angular project in existing folder. So, when you create a new Angular application using ng new angular-app command, where angular-app is the application’s or project’s name, then a new folder angular-app gets…

Posted in Angular

How To Create Angular Project In Existing Folder

Table of Contents Introduction Prerequisites Project Setup Inheritance/Override Testing The Application Source Code Introduction In this example I am going to show you how to inherit values from application.properties into different environments. So, if you have an application.properties file under class path folder src/main/resources and if you have different environment specific application-{env}.properties files, then you csan inherit key/value pairs from application.properties file. Even you…

Posted in Spring Boot Spring Core

Spring Boot application.properties Inheritance/Override

Table of Contents Introduction Callback Queue Message Properties Correlation Id Prerequisites Project Setup Application Properties Configuration Server Client Main Class Output – Testing RPC Source Code Introduction In this tutorial, I am going to show you how to create Spring Boot RabbitMQ RPC Example. RPC is an acronym which stands for Remote Procedure Call, in…

Posted in RabbitMQ Spring Boot

Spring Boot RabbitMQ RPC Example

Table of Contents Introduction Example Prerequisites Junit Test Case Source Code Introduction Here in this example I am going to show you how to mock super class method in Junit test class. A class that extends another class is called a child class and a class that is extended by another class is called a…

Posted in Junit

How To Mock Super Class Method In Junit

Table of Contents Introduction Topic Exchange Prerequisites Project Setup Application Properties Sender Receiver Configuration Main Class Testing Message Pattern Source Code Introduction In this tutorial I am going to show you how to build Spring Boot RabbitMQ message pattern example with TopicExchange. FanoutExchange is only capable to broadcast messages to all receivers and it has limitations to send…

Posted in RabbitMQ

Spring Boot RabbitMQ Message Pattern Example

Table of Contents Introduction Direct Exchange Prerequisites Project Setup Application Properties Configuration Sender Receiver Spring Boot Main Class Testing RabbitMQ Routing Application Source Code Introduction In this Spring RabbitMQ Routing example I am going to show you how to route messages to particular subscribers. Therefore, all receivers are not going to receive all messages, but…

Posted in RabbitMQ

Spring RabbitMQ Routing Example

Table of Contents Introduction Exchanges Prerequisites Project Setup Sender Receiver Exchange Name Configurations Spring Boot Main Class Testing Rabbitmq Publish Subscribe Source Code Introduction Here I am going to build an example about publish subscribe model using Spring Boot and RabbitMQ message broker. In publish subscribe model the messages will be delivered to multiple consumers….

Posted in RabbitMQ

Spring Boot RabbitMQ Publish Subscribe Example