Spring Integration provides two implicit components for stream: one to read the streams and an other to write to streams. This section is small—let's quickly get to the code!
First, let's add the namespaces and Maven dependencies:
Namespace support can be added using the following code:
<?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns:int-stream= "http://www.springframework.org/schema/integration/stream" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemaLocation= "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd">
Maven dependencies can be added using the following code snippet:
<dependency> <groupId>org.springframework.integration...