Home » Enterprise Java

Enterprise Java

Spring init-method and destroy-method Tutorial

Sometimes when the spring beans are created developers need to perform the initialization operations and the cleanup operations before the bean is destroyed. In the spring framework, we can use the init-method and the destroy-method tags in the bean configuration. This tutorial will explore these tags to briefly understand the initialization and destruction. Table Of Contents 1. Introduction 1.1 Spring ...

Read More »

Selenium Web Application Testing Example

1. Introduction In this post, we feature a comprehensive example on Selenium web application testing. A web application is a client-server computer program which the client runs in a web browser. Spring Web model-view-controller (MVC) framework provides an easier way to develop a web application. Spring boot provides auto configuration to simplify the configuration steps. Selenium is a set of software tools ...

Read More »

Spring @Configuration Annotation Example

Spring 3.x framework provides support for moving the bean definitions out of the XML file into the Java class. This tutorial will explore the Spring-specific @Configuration annotation for spring annotation based configuration. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its ...

Read More »

Spring MVC Pagination Example

Pagination is a mechanism to display a large number of records in different parts. In this tutorial, we will show how to implement the pagination functionality in the spring mvc framework. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered ...

Read More »

JAX-WS Logging with Handler Example

1. Introduction In this post, we feature a comprehensive Example on JAX-WS Logging with Handler. Java API for XML Web Services (JAX-WS) is a Java programming language for creating web services, particularly SOAP services. JAX-WS 2.0 specification was introduced in 2005 and has become part of JDK since JDK6. It uses annotations to simplify the development and deployment of web services. It also includes a Handler interface ...

Read More »

Spring MVC ModelMap Example

In spring mvc, the org.springframework.ui.ModelMap object is used to pass the multiple values from the spring controller to the view. In this tutorial, we will show how to implement the org.springframework.ui.ModelMap object with the spring mvc framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the ...

Read More »

Logback OutputStreamAppender Example

This article discusses the OutputStreamAppender of logback, a logging framework for the Java application. 1. Introduction to Logback and Appender Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ~10x faster on some critical areas Automatic Reloading of ...

Read More »

Spring vs Spring Boot Example

1. Spring vs Spring Boot Welcome to the Spring vs Spring Boot example. First and foremost, this is not Spring MVC vs Spring Boot. So you won’t find any discussion relating to web. The example that will be shown here is the simplest thing that could possibly work to show the difference between Spring and Spring Boot. When we speak ...

Read More »

Spring RowMapper Example

Spring Jdbc framework provides a mechanism to fetch the records from a database using the query() method. This tutorial will explore the Spring Jdbc connectivity to fetch the records from the relational database. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the ...

Read More »

Logback Kafka Appender Example

This article discusses Kafka as a logging destination for a Java application. In this tutorial, We will use logback as the logging framework. 1. Logback Kafka Appender – Introduction Logback is designed to be the successor for Log4j. It has been developed by the same development community. These are some of the advantages logback has over log4j Faster implementation – ...

Read More »