Files
spring-cloud-stream/binders
Soby Chacko d6cc07df97 GH-3090: Ensure client factory customizers are applied before transaction manager creation
Fixes: #3090

Issue: https://github.com/spring-cloud/spring-cloud-stream/issues/3090

Fixes issue where KafkaBinderConfiguration would add customizers after the
transaction manager was already created.

The KafkaMessageChannelBinder was initializing the transaction manager in the
constructor before client factory customizers were added, which meant the customizers
were never applied to the producer factory used by the transaction manager.

- Moves transaction manager initialization from the constructor to the onInit() method
- Leverages the existing InitializingBean lifecycle to ensure customizers are applied
  before the transaction manager is created
- Adds comprehensive test coverage to verify the fix in the binder and via auto-configuration

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>

Resolves #3091
2025-03-13 16:58:26 +01:00
..
2025-02-27 15:46:58 +00:00
2025-02-27 15:46:58 +00:00
2025-02-27 15:46:58 +00:00