You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/kafka.adoc
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1595,6 +1595,10 @@ public class MultiListenerSendTo {
1595
1595
----
1596
1596
====
1597
1597
1598
+
IMPORTANT: In order to support `@SendTo`, the listener container factory must be provided with a `KafkaTemplate` (in its `replyTemplate` property), which is used to send the reply.
1599
+
This should be a `KafkaTemplate` and not a `ReplyingKafkaTemplate` which is used on the client-side for request/reply processing.
1600
+
When using Spring Boot, boot will auto-configure the template into the factory; when configuring your own factory, it must be set as shown in the examples below.
1601
+
1598
1602
Starting with version 2.2, you can add a `ReplyHeadersConfigurer` to the listener container factory.
1599
1603
This is consulted to determine which headers you want to set in the reply message.
1600
1604
The following example shows how to add a `ReplyHeadersConfigurer`:
0 commit comments