vladimirfx commented on issue #1197:
URL: https://github.com/apache/camel-quarkus/issues/1197#issuecomment-633006820


   > @jamesnetherton yeah, I had an initial change to introduce the 
QuarkusTransactedPolicy
   > you can see 
https://github.com/zhfeng/camel-quarkus/compare/master...issue_1197_transacted?expand=1
   > 
   > It works to get the TransactionManger while add the dependency of 
io.quarkus:quarkus-narayana-jta. Then the most difficult thing is to do the 
similar functions with the Spring Transaction Template to wrap the processor 
inside the transaction context
   > 
   > ```
   > transactionTemplate.execute(new TransactionCallbackWithoutResult() {
   > ...
   > });
   > ```
   
   Camel already has fully functional and proven JTA based transacted policy. I 
think it is not optimal to implement another one from scratch. See my previous 
comment for implementation idea.


----------------------------------------------------------------
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.

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


Reply via email to