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).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user