zhfeng commented on code in PR #4049:
URL: https://github.com/apache/camel-quarkus/pull/4049#discussion_r969287368


##########
integration-tests/jpa/src/main/java/org/apache/camel/quarkus/component/jpa/it/JpaRoute.java:
##########
@@ -73,7 +77,12 @@ public void configure() throws Exception {
         from("direct:idempotent")
                 .idempotentConsumer(
                         header("messageId"),
-                        jpaMessageIdRepository(entityManagerFactory, 
"idempotentProcessor"))
+                        new JpaMessageIdRepository(entityManagerFactory, new 
TransactionStrategy() {
+                            @Override
+                            public void executeInTransaction(Runnable 
runnable) {
+                                
QuarkusTransaction.run(runOptions().semantic(RunOptions.Semantic.JOIN_EXISTING),
 runnable);
+                            }
+                        }, "idempotentProcessor"))

Review Comment:
   yeah, I think we can add `QuarkusTransactionStrategy`.



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