Now is the time for actual integration! Once the router has routed the message to the appropriate endpoints, it should be processed by them. For example, it can be persisted to a database, sent on a JMS channel, or sent as an e-mail. Depending on the payload type, the router will put the message on to one of the channels
mailChannel. If it cannot understand the payload, it will route it to
logChannel. Let's start with the endpoint attached to the channel
jdbcChannel that is used for database integration.
In this section, we will write code to add and query data from a database. Before we write adapters from Spring Integration, let's do the basic setup.
As obvious as it can ...