aldettinger commented on code in PR #4655:
URL: https://github.com/apache/camel-quarkus/pull/4655#discussion_r1136910152


##########
integration-tests/jdbc/src/main/java/org/apache/camel/quarkus/component/jdbc/JdbcRoutes.java:
##########
@@ -44,5 +47,20 @@ public void process(Exchange exchange) throws Exception {
                         exchange.getIn().setBody(in);
                     }
                 });
+
+        from("direct://headers-as-parameters")
+                .to("jdbc:camel-ds?useHeadersAsParameters=true");
+
+        from("timer://interval-polling?delay=5000&period=1000")

Review Comment:
   Maybe we could gain a bit of delay here.
   
   For instance, could we consume records that would be added in 
`@PostConstruct` phase ?
   And then, we could maybe use `timer` with `delay = 0` and `repeatCount = 1` ?
   If this idea work, then maybe we could as well shorten `await()` in test ?
   
   And maybe, it could also be possible to avoid producing a log by using a 
MockEnpoint like 
[here](https://github.com/apache/camel-quarkus/blob/main/integration-tests/netty/src/main/java/org/apache/camel/quarkus/component/netty/udp/NettyUdpResource.java#L88).



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