From the course: Spring: Spring Integration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

JDBC connectivity using Spring Integration

JDBC connectivity using Spring Integration - Spring Tutorial

From the course: Spring: Spring Integration

Start my 1-month free trial

JDBC connectivity using Spring Integration

- [Instructor] JDBC is the Java-centric protocol for connecting to a relational database. Let us build a JDBC connection endpoint together. Initialize the project files by using git checkout 04_02b. Now, for this lesson, imagine that we have several power devices on a consumer power grid, and each of these devices communicate to the consumer local database with status updates. Our consumer dashboard application that we are building needs to query this database to discover if any devices are offline and to notify the consumer in this event. Let's configure a Spring Integration JDBC adapter to accomplish this. Let's first have a look at AppSupportStatus.java. This is the domain object that we've been building. This object encapsulates state for communication along our central message pipeline. In line 15, we have prepared for this lesson by adding a property that captures an array list of devices known to be offline,…

Contents