Callback handling , How to use callback | Ref : https://github.com/spring-projects/spring-amqp/issues/1362 #1380
-
Hi, This is continuation of issue : #1362
for example : @transactional
method foo(){
sendRabbit();
saveDB();
sendRabbit();
saveDB();
} SaveDB save data in DB and SendRabbit use template.convertAndSend in transactional enabled flow. So which operation will be in primary transaction
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The primary transaction is from the transaction manager associated with the See the documentation for how to use the callback https://docs.spring.io/spring-amqp/docs/current/reference/html/#tx-sync Apache Kafka works the same way (although it does not currently have the callback we added here). I can't answer for GPS; we don't maintain that project. |
Beta Was this translation helpful? Give feedback.
The primary transaction is from the transaction manager associated with the
@Transactional
annotation.See the documentation for how to use the callback https://docs.spring.io/spring-amqp/docs/current/reference/html/#tx-sync
Apache Kafka works the same way (although it does not currently have the callback we added here).
I can't answer for GPS; we don't maintain that project.