From 7a92b41af89266d2c60e4c9d75fcef5826c9646a Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 25 Oct 2023 09:48:16 -0400 Subject: [PATCH] GH-2546: Fix Super Stream Example in Docs (#2547) Resolves https://github.com/spring-projects/spring-amqp/issues/2546 Incorrectly added prototype scope to the bean (copy/paste from test). --- src/reference/asciidoc/stream.adoc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/reference/asciidoc/stream.adoc b/src/reference/asciidoc/stream.adoc index ba3e844f..a53c2e48 100644 --- a/src/reference/asciidoc/stream.adoc +++ b/src/reference/asciidoc/stream.adoc @@ -295,7 +295,6 @@ Invoke the `superStream` method on the listener container to enable a single act [source, java] ---- @Bean -@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE) StreamListenerContainer container(Environment env, String name) { StreamListenerContainer container = new StreamListenerContainer(env); container.superStream("ss.sac", "myConsumer", 3); // concurrency = 3