splitter: 1.0.0-spring-integration-xml - defined the `DirectChannel` in XML
[demos/kafka/wordcount] / src / main / resources / integration.xml
diff --git a/src/main/resources/integration.xml b/src/main/resources/integration.xml
new file mode 100644 (file)
index 0000000..14bd157
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:int="http://www.springframework.org/schema/integration"
+    xmlns:int-kafka="http://www.springframework.org/schema/integration/kafka"
+    xsi:schemaLocation="
+        http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
+               http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
+        http://www.springframework.org/schema/integration/kafka http://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd">
+
+  <int:channel id="words">
+    <int:interceptors>
+      <ref bean="keyInterceptor"/>
+    </int:interceptors>
+  </int:channel>
+
+</beans>