Database SQL
It's difficult to imagine enterprise applications without any database; it is one of the oldest and most commonly used bridging mechanisms. Spring Integration provides support to read from and write to the database. Again, this support is based on the Spring framework's foundation for database support. It provides inbound and outbound adapters, gateways, and even specific adapters for stored procedures. Let's have a look at some of these, and others can be used on the same pattern.
Prerequisites
Before we talk about how to use database support of Spring Integration, let's add the necessary namespaces and Maven dependencies:
- Namespace support can be added using the following code snippet:
xmlns:int-jdbc= "http://www.springframework.org/schema/integration/jdbc" ...
Get Spring Integration Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.