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
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1121,25 +1121,34 @@ Use a custom deserializer, the `JsonDeserializer` or the `(String|Bytes)JsonMess
1121
1121
1122
1122
The listener containers created for `@KafkaListener` annotations are not beans in the application context.
1123
1123
Instead, they are registered with an infrastructure bean of type `KafkaListenerEndpointRegistry`.
1124
-
This bean manages the containers' lifecycles; it will auto-start any containers that have `autoStartup` set to `true`.
1124
+
This bean is automatically declared by the framework and manages the containers' lifecycles; it will auto-start any containers that have `autoStartup` set to `true`.
1125
1125
All containers created by all container factories must be in the same `phase` - see <<container-auto-startup>> for more information.
1126
1126
You can manage the lifecycle programmatically using the registry; starting/stopping the registry will start/stop all the registered containers.
1127
1127
Or, you can get a reference to an individual container using its `id` attribute; you can set `autoStartup` on the annotation, which will override the default setting configured into the container factory.
1128
+
Simply get a reference to the bean from the application context, such as auto wiring, to manage its registered containers:
0 commit comments