Home » Author Archives: Xavier Padro

Author Archives: Xavier Padro

Xavier is a software developer working in a consulting firm based in Barcelona. He is specialized in web application development with experience in both frontend and backend. He is interested in everything related to Java and the Spring framework.

Spring Integration MongoDB adapters with Java DSL

mongodb-logo

1 Introduction This post explains how to save and retrieve entities from a MongoDB database using Spring Integration. In order to accomplish that, we are going to configure inbound and outbound MongoDB channel adapters using the Java DSL configuration extension. As an example, we are going to build an application to allow you to write orders to a MongoDB store, ...

Read More »

Spring Integration – Polling file creation and modification

spring-interview-questions-answers

1 Introduction File support is another of Spring Integration’s endpoints to communicate with external systems. In this case, it provides several components to read, write and transform files. During this post, we are going to write an application which monitors a directory in order to read all files in there. In concrete it does the following: When the application starts, ...

Read More »

Data Aggregation Spring Data MongoDB: Nested results

mongodb-logo

1 Introduction In a previous post, we built a basic example of an aggregation pipeline. Maybe you want to take a look at Data aggregation with Spring Data MongoDB and Spring Boot if you need more detail about how to create the project and configure the application. In this post, we will focus on learning a use case where it makes ...

Read More »

Data aggregation with Spring Data MongoDB and Spring Boot

java-interview-questions-answers

MongoDB aggregation framework is designed for grouping documents and transforming them into an aggregated result. The aggregation query consists in defining several stages that will be executed in a pipeline. If you are interested in more in-depth details about the framework, then mongodb docs are a good point to start. The point of this post is to write a web ...

Read More »

Grouping, transforming and reduction with Java 8

java-logo

1. Introduction In this previous post, I wrote about how we can group collections of objects with streams and grouping. This is useful but does not cover specific use cases. For example, sometimes we do not only need to group things but also transform the result into a more appropriate object. In this post, we will learn how to apply ...

Read More »

Multi level grouping with streams

java-logo

1. Introduction With Java 8 streams it is pretty easy to group collections of objects based on different criteria. In this post, we will see how we can make from simple single level groupings to more complex, involving several levels of groupings. We will use two classes to represent the objects we want to group by: person and pet. Person.class ...

Read More »

Spring Integration Course Summary

spring-interview-questions-answers

This article is part of our Academy Course titled Spring Integration for EAI. In this course, you are introduced to Enterprise Application Integration patterns and how Spring Integration addresses them. Next, you delve into the fundamentals of Spring Integration, like channels, transformers and adapters. Check it out here! This course is first focused on learning the basics of the Spring ...

Read More »

Monitoring and Management

spring-interview-questions-answers

This article is part of our Academy Course titled Spring Integration for EAI. In this course, you are introduced to Enterprise Application Integration patterns and how Spring Integration addresses them. Next, you delve into the fundamentals of Spring Integration, like channels, transformers and adapters. Check it out here! Table Of Contents 1. Introduction 2. Publishing and receiving JMX notifications 2.1. ...

Read More »

Spring Integration Full Example

spring-interview-questions-answers

This article is part of our Academy Course titled Spring Integration for EAI. In this course, you are introduced to Enterprise Application Integration patterns and how Spring Integration addresses them. Next, you delve into the fundamentals of Spring Integration, like channels, transformers and adapters. Check it out here! Table Of Contents 1. Introduction 2. Overview of the system 3. The ...

Read More »

Enterprise Messaging

spring-interview-questions-answers

This article is part of our Academy Course titled Spring Integration for EAI. In this course, you are introduced to Enterprise Application Integration patterns and how Spring Integration addresses them. Next, you delve into the fundamentals of Spring Integration, like channels, transformers and adapters. Check it out here! Table Of Contents 1. Introduction 2. Preparing the environment 3. JMS Adapters: ...

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