The property comes from org.springframework.boot.autoconfigure.amqp.RabbitProperties.BaseContainer#isAutoStartup, which inherits it to SimpleContainer, DirectContainer, and StreamContainer.

The property is read for SimpleContainer and DirectContainer in org.springframework.boot.autoconfigure.amqp.AbstractRabbitListenerContainerFactoryConfigurer, but nothing reads it on the StreamContainer, therefore the property has no effect for the Stream listener.

There's also no setAutoStartup on the StreamRabbitListenerContainerFactory.

I think we should move the property from BaseContainer to AmqpContainer, which is the super class of SimpleContainer and DirectContainer, but not StreamContainer.

Comment From: BenchmarkingBuffalo

Hi @mhalbritter, I would like to fix this bug and I am willing to create a PR for it. The question is, do we keep the empty class/interface BaseContainer or do we remove it? It seems not to be used anywhere in the code of the framework, but maybe someone else has a project relying on it.

Comment From: mhalbritter

Hello,

36451 has added a new field to the BaseContainer on the main branch, so we have to keep it. I'll assign this issue to you. If you need any help, please don't hesitate to reach out.

Comment From: BenchmarkingBuffalo

Hi @mhalbritter, PR is here. If I need to change something, please let me know. The tests for this attribute have already been in the correct places, so no changes here. If I should also create a PR for the main branch because of the merge conflicts due to #36451, just tell me.

Comment From: mhalbritter

Superseded by #39072. Thank you!