spring-cloud / spring-cloud-stream-samples

Samples for Spring Cloud Stream
Apache License 2.0
956 stars 676 forks source link

Conversion to Functional Model is Wrong for the Transactional Sample #212

Closed garyrussell closed 2 years ago

garyrussell commented 3 years ago

https://github.com/spring-cloud/spring-cloud-stream-samples/blob/1e4a4f3239126d31638b408f665846272bf07abc/transaction-kafka-samples/transaction-spring-data-processor/src/main/java/sample/processor/ProcessorApplication.java#L59

The @Transactional annotation needs to be moved to the runtime code, it should not be on the bean definition.

See https://stackoverflow.com/questions/68941306/spring-cloud-stream-database-transaction-does-not-roll-back/68942386#68942386