oscerd commented on PR #9072: URL: https://github.com/apache/camel-quarkus/pull/9072#issuecomment-5494537956
@zhfeng I checked, and the pattern does not appear to exist outside camel-quarkus — so there is nothing to fix on the Spring Boot side. **camel-spring-boot**: no JTA transaction policy code at all. No files matching `*jta*`, no references to `JtaTransactionPolicy` or `TransactionalJta`, and no direct `setRollbackOnly` / `transactionManager.rollback` calls. **camel core `camel-jta`**: `JtaTransactionPolicy` is abstract and declares `public abstract void run(Runnable) throws Throwable`. It has no `rollback`, no `resumeTransaction` and no `catch (Throwable)` anywhere. `runWithTransaction` does not exist anywhere in camel core. So the `runWithTransaction` / `rollback` / `resumeTransaction` implementation — and with it the swallowing — looks specific to camel-quarkus's own `TransactionalJtaTransactionPolicy`. If the operations were borrowed from something in the Spring Boot JTA support originally, whatever they came from is no longer there. Worth saying that my check was a code search across the two checkouts rather than a deep review, so if you know of another place that grew from the same source it is worth a look — but the obvious candidates are clean. -- 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]
