Home » Enterprise Java » spring » Page 20

spring

Spring Integration Poller Example

1. Introduction As we already had an introduction to Spring Integration, it has an event-driven messaging architecture. To take a quick recap, for every Message communication to a JMS destination involves two endpoints, which is the Producer Endpoint and Consumer Endpoint. The endpoints demarcate the ends of a particular Channel, such that the Producer Endpoint produces the Message and drops it to a designated ...

Read More »

Spring Framework JMSTemplate Example

In order to send or receive messages through JMS, we need a connection to JMS provider, obtain session, create destination creation, the JMS API involved becomes too verbose and repetitive. JmsTemplate is a helper class that simplifies receiving and sending of messages through JMS and gets rid of the boilerplate code. JmsTemplate simplifies the development efforts on constructing the message ...

Read More »

Spring JMS Example

Java Messaging Service (JMS) is a standard messaging API used to send and receive messages. Spring simplifies the use of JMS API by providing another layer around the JMS layer. This layer provides convenience methods for sending and receiving messages, as well as manages the creation and release of resources like the connection object. The JmsTemplate class is the main ...

Read More »

Spring Data Rest Example

In the previous few examples we demonstrated how the different spring data modules are configured and their support for the NoSql databases. In this example, I will demonstrate how we can expose our CRUD Repository as a REST Web-Service over the HTTP. We will be using MySQL as the database for this project . However, the application which we shall ...

Read More »

Spring Batch Admin Tutorial

Spring Batch Admin exposes a web-based user interface featuring an admin console for Spring Batch applications and systems. This tutorial shows how to set up a Spring Batch Job and then monitor it using the User Interface offered by Spring Batch Admin. The example will use the following tools and libraries. Eclipse Helios Maven 2.2 Tomcat 7 Spring 4.0.5.RELEASE Spring ...

Read More »

Spring Batch Listeners Example

In this article we will talk about the concept of Listeners as provided by the Spring Batch framework. Listeners are the entities that help to intercept the execution of a Job or a Step and allow the user to perform some functionality. The article will be driven by an XML based Spring Batch example. Following are the tools that would ...

Read More »

Spring Data MongoDB Example

In this example, we will demonstrate how to connect Spring Data with MongoDb. MongoDb is also a document based NoSql Database like Solr, which we demonstrated past week. Spring Data MongoDb is the module of Spring Data that provides support for MongoDb. As with the other modules demonstrated in this series, this module too provides supports both for derived queries(based ...

Read More »

Spring Data Solr Example

In this example, we will demonstrate how to integrate Spring data with Apache Solr. Solr is a search engine built on top of Apache Lucene library. It can be communicated with a REST like HTTP API because of which it can be easily be consumed as a REST-ful web-service irrespective of the underlying programming language used in the application which ...

Read More »

Spring Data MongoDB REST Example

In this tutorial, I will show you how to develop a RESTful web application by using Spring and MongoDB without implementing boring uniform controllers. 1. Introduction When it comes to RESTful application, we need an api that mainly handles CRUD operations. Let me give you example to clearify what I mean by sentence above. Let say that, you have a ...

Read More »

Spring Data Redis Example

In the past few examples, we have been integrating Spring Data with the NoSql Databases. In this example, we shall integrate Spring Data with Redis, a key-value based NoSQL Database. Spring Data offers a level of abstraction over the traditional way of executing query by exposing a Repository. As such, the user need not write queries and call specific methods, ...

Read More »