Home » Enterprise Java

Enterprise Java

JPA @Embedded And @Embeddable Example

1. Introduction In this post, we will examine the functionality of two JPA annotations, the JPA @Embedded and the @Embeddable. We will leverage the power of Spring Data JPA and H2 in memory database to create the code examples and run the unit test. 2. Project Setup To run the code examples of this post, we will use the following ...

Read More »

Spring Cloud Hystrix Circuit Breaker Example

Welcome readers! In this post, we feature a comprehensive article on Spring Cloud Hystrix Circuit Breaker. We will explore an interesting Spring Cloud component known as Netflix Hystrix to implement a circuit breaker while invoking a microservice. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code ...

Read More »

TestNG Creating Selenium Scripts Example

1. Introduction In this post, we feature a comprehensive article on TestNG Creating Selenium Scripts. TestNG is an open-source automated testing framework for Java unit testing which is inspired by both JUnit and NUnit. It supports the following unit testing features: It provides a suite of annotations: @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod, @Test, etc.It bundles test classes with xml files.@Test attributes are ...

Read More »

Spring Cloud Ribbon with Eureka Example

Welcome readers, in this tutorial, we will explore an interesting Spring Cloud component known as Netflix Ribbon for client-side load balancing. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container ...

Read More »

Java Quartz Architecture Example

1. Introduction In this post, we will take a closer look at the architecture of Quartz, a very popular open source job scheduling library that can be used in Java applications. We will see an architectural diagram and learn all the main and optional components of Quartz by providing code examples. 2. Project Setup To run the code examples of ...

Read More »

Spring Cloud Eureka Server Tutorial

Welcome readers, in this tutorial, we will explore an interesting Spring Cloud component known as Eureka for service registry and discovery. Table Of Contents 1. Introduction 1.1 Eureka Server 2. Spring Cloud Eureka Server Tutorial 2.1 Tools Used 2.2 Project Structure 2.3 Project Creation 3. Creating a Eureka Server 3.1 Eureka Server: Maven Dependencies 3.2 Eureka Server: Configuration File 3.3 ...

Read More »

Spring Boot JAX-RS with Jersey Example

In this post, we feature a comprehensive article on Spring Boot JAX-RS with Jersey. We will show how to create a JAX-RS web service with Spring Boot and Jersey. 1. Introduction REST (Representational State Transfer) is an architectural pattern for developing web services. REST is a popular choice for web services development projects since it is lightweight, stateless, and therefore easily ...

Read More »

Spring Boot Unit Testing Example

1. Introduction This is an in-depth article related to the Spring Boot Unit Testing. Spring Boot framework has features to build applications. Spring Boot has features related to unit testing the application. The framework has utilities and annotations to perform unit testing. Modules for the Test support are spring-boot-test and spring-boot-test-autoconfigure  which supports auto-configuration for tests. 2. Spring Boot Unit Testing ...

Read More »

Java Quartz Logging Example

1. Introduction In this article, we will explore Java Quartz Logging application using two of the most widely used logging frameworks, Logback and Log4j. Quartz is a very popular open source job scheduling library that can be used in Java applications. The main concept of Quartz is that a scheduler holds a list of jobs that are triggered at specific times or repeatedly. 2. Project Setup ...

Read More »

Spring Cloud Configuration Example

Welcome readers, in this tutorial, we will explore cloud configuration with spring boot application. 1. Introduction Spring Boot is a module that provides rapid application development feature to the spring framework including auto-configuration, standalone-code, and production-ready code It creates applications that are packaged as jar and are directly started using embedded servlet container (such as Tomcat, Jetty or Undertow). Thus, ...

Read More »