Home » Enterprise Java » spring


Spring Autowiring Tutorial

One of the main tenets of the Spring framework is Dependency Injection (DI). The framework implements DI by using @Autowired annotations. These annotations were introduced starting with Spring 2.5. By using this annotation, one can leave a lot of configuration overheads and leave the handling of injection of beans to Spring. Table Of Contents 1. Introduction 2. Setup Maven Project ...

Read More »

Spring Integration Chain Example

1. Introduction Spring Integration provides a way to group set of elements into one transaction and its referred as chaining. In this post we will look at MessageHandlerChain that is an implementation of MessageHandler and it can be configured as a single message endpoint while actually delegating to a chain of handlers like Filters,Transformers etc. Though the handler chain allows ...

Read More »

Java Spring and Hibernate Tutorial for Beginners

Hello, in this tutorial, we will go over the fundamentals of setting up a Spring project integrated with Hibernate. Next we will perform CRUD operations against an Oracle database. Table Of Contents 1. Introduction 2. Setting up Project 2.1. Create Maven project in Eclipse 2.2. Adding POM dependencies 3. Building Project 3.1. Create Application Configurations 3.2. Create Entity 3.3. Create ...

Read More »

Spring Integration Control Bus Example

1. Introduction Control bus is a useful Spring Integration component that accepts messages on the input channel similar to Service Activator, Adapter  or Transformer but the key difference is that the payload of the message that is received indicates  an invocable action or operation on a bean. The input channel is more of an operation channel that is basically used for ...

Read More »

Spring Integration Adapter Example

Using messaging as communication medium to interact with different external systems is always a challenging task. There is always complexity around the connection mechanisms and transformation of the format across different systems. In this article, we are going to discuss about a useful component for Spring Integration-Adapters. 1. Introduction Adapter is the most important component for enterprise application integration. Adapter ...

Read More »

Jdbc Example For Beginners

1. Introduction In this example we will learn how to use JDBC shipped with Java SE. The purpose of JDBC is to make possible interaction with any database in a generic way. This is to hide such details which are specific to the database vendor and expose a generic interface for client applications. We will see how to connect to ...

Read More »

Spring Integration Aggregator Example

1. Introduction In the last article Spring Boot Integration With Active MQ we discussed on how straightforward and efficient it was to use Spring Integration framework to build messaging applications with JMS. In this article we will be discussing about a useful Spring Integration component called Aggregator. Enterprise applications with large datasets may need to process lot of information and sending ...

Read More »

Jdbc Named Parameters Example with Spring NamedParameterJdbcTemplate

In this example we will present the usage of Spring NamedParameterJdbcTemplate. 1. Introduction JDBC in general, acts as a communication layer between client applications and various databases hence relevant how we can utilise it. An introduction about plain JDBC is already available under the following link https://examples.javacodegeeks.com/enterprise-java/servlet/jdbc-servlet-example/#introduction. It is best reading that post as well to have a broader understanding of the topic. Table Of ...

Read More »

Spring Boot Integration ActiveMQ Example

1. Introduction In this article we will be discussing the integration of Spring Boot with ActiveMQ. We will be using ActiveMQ as a message broker and create a sample application with JMS Queue and channel adapters integrated with Spring Boot to implement asynchronous messaging service. Before we get started I would like to go over some of the basic components as below. 1.1 ...

Read More »

Spring Framework Angularjs Integration Tutorial

Spring Application Framework enables us develop RESTful services using its Web MVC subsystem, and we can consume those services via any of the client side front end UI technologies, e.g Angular, Backbone or React JS. In this example, I will explain how a CRUD like scenario can be developed using Spring MVC at the back side, and Angular JS in ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns