You are looking for examples, code snippets, sample applications for Spring Integration? This is the place.
See the codeWelcome to the Spring Integration Samples repository which provides 50+ samples to help you learn Spring Integration. To simplify your experience, the Spring Integration samples are split into 4 distinct categories:
Inside of each category you'll find a README.md file, which will contain a more detailed description of that category. Each sample also comes with its own README.md file explaining further details, e.g. how to run the respective sample.
| For additional samples, please also checkout the Spring Integration Extensions project as it also provides numerous samples.
Happy Integration!
This (main) branch requires Spring Integration 6.0 or above. For samples running against earlier versions of Spring Integration, use the 5.5.x and other branches.
The project requires now Java 17 or above.
To open the project in the IDE, use its import option against a build.gradle file from the root project directory.
Below is a short description of each category.
This directory holds demos/samples for Spring Integration Java Configuration as well as the Java DSL Extension.
This is a good place to get started. The samples here are technically motivated and demonstrate the bare minimum with regard to configuration and code to help you to get introduced to the basic concepts, API and configuration of Spring Integration. For example, if you are looking for an answer on how to wire a Service Activator to a Channel or how to apply a Gateway to your message exchange or how to get started with using the MAIL or XML module, this would be the right place to find a relevant sample. The bottom line is that this is a good starting point.
This category targets developers who are already more familiar with the Spring Integration framework (past getting started), but need some more guidance while resolving more advanced technical problems that you have to deal with when switching to a Messaging architecture. For example, if you are looking for an answer on how to handle errors in various scenarios, or how to properly configure an Aggregator for the situations where some messages might not ever arrive for aggregation, or any other issue that goes beyond a basic understanding and configuration of a particular component to address "what else you can do?" types of problems, this would be the right place to find relevant examples.
This category targets advanced developers who are quite familiar with Spring Integration but are looking to address a specific custom need by extending the Spring Integration public API. For example, if you are looking for samples showing how to implement a custom Channel or Consumer (event-based or polling-based), or you are trying to figure out what is the most appropriate way to implement a custom BeanParser on top of the Spring Integration BeanParser hierarchy when implementing a custom namespace, this would be the right place to look. Here you can also find samples that will help you with adapter development. Spring Integration comes with an extensive library of adapters that allow you to connect remote systems with the Spring Integration messaging framework. However you might have a need to integrate with a system for which the core framework does not provide an adapter, so you have to implement your own. This category would include samples showing you how to implement various adapters.
This category targets developers and architects who have a good understanding of Message-Driven architecture and Enterprise Integration Patterns, and have an above average understanding of Spring and Spring integration and who are looking for samples that address a particular business problem. In other words, the emphasis of samples in this category is 'business use cases' and how they can be solved via a Messaging architecture and Spring Integration in particular. For example, if you are interested to see how a Loan Broker process or Travel Agent process could be implemented and automated via Spring Integration, this would be the right place to find these types of samples.
See the Spring Integration Contributor Guidelines for information about how to contribute to this repository.
For more information, please visit the Spring Integration website at: https://projects.spring.io/spring-integration/
116 followers · starred Nov 2018
211 followers · starred Mar 2017
21 followers · starred Dec 2023
242 followers · starred Aug 2020
You are looking for examples, code snippets, sample applications for Spring Integration? This is the place.
See the codeWelcome to the Spring Integration Samples repository which provides 50+ samples to help you learn Spring Integration. To simplify your experience, the Spring Integration samples are split into 4 distinct categories:
Inside of each category you'll find a README.md file, which will contain a more detailed description of that category. Each sample also comes with its own README.md file explaining further details, e.g. how to run the respective sample.
| For additional samples, please also checkout the Spring Integration Extensions project as it also provides numerous samples.
Happy Integration!
This (main) branch requires Spring Integration 6.0 or above. For samples running against earlier versions of Spring Integration, use the 5.5.x and other branches.
The project requires now Java 17 or above.
To open the project in the IDE, use its import option against a build.gradle file from the root project directory.
Below is a short description of each category.
This directory holds demos/samples for Spring Integration Java Configuration as well as the Java DSL Extension.
This is a good place to get started. The samples here are technically motivated and demonstrate the bare minimum with regard to configuration and code to help you to get introduced to the basic concepts, API and configuration of Spring Integration. For example, if you are looking for an answer on how to wire a Service Activator to a Channel or how to apply a Gateway to your message exchange or how to get started with using the MAIL or XML module, this would be the right place to find a relevant sample. The bottom line is that this is a good starting point.
This category targets developers who are already more familiar with the Spring Integration framework (past getting started), but need some more guidance while resolving more advanced technical problems that you have to deal with when switching to a Messaging architecture. For example, if you are looking for an answer on how to handle errors in various scenarios, or how to properly configure an Aggregator for the situations where some messages might not ever arrive for aggregation, or any other issue that goes beyond a basic understanding and configuration of a particular component to address "what else you can do?" types of problems, this would be the right place to find relevant examples.
This category targets advanced developers who are quite familiar with Spring Integration but are looking to address a specific custom need by extending the Spring Integration public API. For example, if you are looking for samples showing how to implement a custom Channel or Consumer (event-based or polling-based), or you are trying to figure out what is the most appropriate way to implement a custom BeanParser on top of the Spring Integration BeanParser hierarchy when implementing a custom namespace, this would be the right place to look. Here you can also find samples that will help you with adapter development. Spring Integration comes with an extensive library of adapters that allow you to connect remote systems with the Spring Integration messaging framework. However you might have a need to integrate with a system for which the core framework does not provide an adapter, so you have to implement your own. This category would include samples showing you how to implement various adapters.
This category targets developers and architects who have a good understanding of Message-Driven architecture and Enterprise Integration Patterns, and have an above average understanding of Spring and Spring integration and who are looking for samples that address a particular business problem. In other words, the emphasis of samples in this category is 'business use cases' and how they can be solved via a Messaging architecture and Spring Integration in particular. For example, if you are interested to see how a Loan Broker process or Travel Agent process could be implemented and automated via Spring Integration, this would be the right place to find these types of samples.
See the Spring Integration Contributor Guidelines for information about how to contribute to this repository.
For more information, please visit the Spring Integration website at: https://projects.spring.io/spring-integration/
116 followers · starred Nov 2018
211 followers · starred Mar 2017
21 followers · starred Dec 2023
242 followers · starred Aug 2020