Book Image

Spring Integration Essentials

By : CHANDAN K PANDEY
Book Image

Spring Integration Essentials

By: CHANDAN K PANDEY

Overview of this book

Table of Contents (18 chapters)
Spring Integration Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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"
    xmlns:jdbc=
    "http://www.springframework.org/schema/jdbc"
    xsi:schemaLocation="
    http://www.springframework.org/schema/integration/jdbc
    http://www.springframework.org/schema/integration/jdbc/spring-integration-jdbc.xsd
    http:...