This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
SimpleMessageListenerContainerFactory doesn't propagate queueMessageHandler field when SimpleMessageListenerContainer bean is created via createSimpleMessageListenerContainer #795
Labels
Type: Bug
Component:
SQS messaging
Describe the bug
SimpleMessageListenerContainerFactory has queueMessageHandler field and has setter for this. However when public method
createSimpleMessageListenerContainer
is called to create the actual beanSimpleMessageListenerContainer
this field is not propagated. Ideally for the factory bean we would want all the relevant properties/fields propagated to the underlying bean without having to manually inject it twice in factory and then the underlying bean.Sample
in the above code the
simpleMessageListenerContainer.setMessageHandler(queueMessageHandler);
line shouldn't be required and the callsimpleMessageListenerContainerFactory.createSimpleMessageListenerContainer()
should ensure all fields from factory are injected into the bean.The text was updated successfully, but these errors were encountered: