Spring Integration – Manipulate RSS Feed Data and Write to Files

Introduction In this tutorial we will create an example on how to manipulate data from RSS Feed and write to files periodically using Spring Integration framework. This guide uses Spring Integration using Java configuration to retrieve data from RSS feed, manipulate and write to files. In this example we will create both gradle and maven based build configurations to build our application. We will read the feed data from URL https://spring.io/blog.atom. We will transform to return the feed title, author and URL in a single line and write to the…

Continue

File Transfer from Source Directory to Destination Directory using File Adapter in Spring Integration

Introduction We will create Spring integration file adapter example. This example will show you how to transfer file from source directory to destination directory using file adapter in Spring integration or how to move a file from source to destination folder or how to poll a directory at an interval to move file to the destination folder. You may also decide to delete or not after the file has been moved to the destination folder by setting auto delete flag to true.

Continue

Read File Content From Source Directory using File Adapter in Spring Integration

Introduction We will create an example to read file content from source directory using file adapter in Spring integration. This example will show you how to read file content from a particular location and log the file content into console. You may further process this file content for your business requirements. Prerequisites Eclipse 4.12, Java 8 or 12, Gradle 5.6, Spring Boot 2.1.8 Creating Project Create a gradle based project in Eclipse with the project’s name as spring-integration-file. Updating Build Script The default generated build.gradle script has to be updated to include the…

Continue

Spring Integration Hello Example

Introduction In this post we will create a simple example in Spring Integration with greeting message or hello message. Spring Integration aims to provide a clear line between code and configuration. The components provided by the framework, which often represent the enterprise integration patterns, are typically configured in a declarative way using either XML or Java annotations as metadata. We will use here annotation or Java based configurations for our example on Spring Integration. I would not focus on what is Spring Integration? or what are the advantages of Spring…

Continue