graben commented on PR #17734:
URL: https://github.com/apache/camel/pull/17734#issuecomment-2810405006

   I've checked several implementations for calling setAutoCommit(false). Most 
are fine to not throw Exception if JTA transaction is active, since 
setAutoCommit(false) is not changing state. But DBCP for example does throw an 
Exception either way.
   
   It might be a good idea to add a condition to every part of manualCommit. 
But still the question is looking after JTA is active or simple look after 
autocommit has been disabled, manually by user or automatically by JTA aware 
framework utils!


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