You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/04/20 08:53:26 UTC

[GitHub] [camel] davsclaus commented on pull request #7454: CAMEL-15016 support kafka transactions

davsclaus commented on PR #7454:
URL: https://github.com/apache/camel/pull/7454#issuecomment-1103646241

   I think its not correct to implement a custom transaction policy / error handler et all.
   
   Instead you should do as you also mention, to use a synchronization on the exchange, where you can commit / rollback when the exchange is done.
   
   In the kafka consumer / producer then you can add this synchronoziation if the user has enabled transaction on camel-kafka.
   
   This would then work with JTA also. But if you combine a JTA with the resources it support (SQL and JMS) then they would work in tandem, where they both will either commit or rollback at the end of the exchange routing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org