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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to