diff --git a/jdbc-datasource/README.adoc b/jdbc-datasource/README.adoc index b32eb02f..1f9cfaa3 100644 --- a/jdbc-datasource/README.adoc +++ b/jdbc-datasource/README.adoc @@ -9,6 +9,10 @@ and other general information. == Start the source and target databases All the commands in this example are expected to be run from the example directory, at the same level than the `pom.xml` file. +[source,shell] +---- +cd jdbc-datasource +---- In a first terminal, let's start the source database by executing the command below: @@ -106,7 +110,7 @@ Or, if you don't have GraalVM installed, you can run the native executable build mvn package -Dnative -Dquarkus.native.container-build=true ---- -Either way, the resulting native executable could be start as below: +Either way, the resulting native executable could be started as below: [source,shell] ---- diff --git a/jdbc-datasource/src/main/java/org/acme/jdbc/JdbcRoutes.java b/jdbc-datasource/src/main/java/org/acme/jdbc/JdbcRoutes.java index 3afa3317..f5a22ca4 100644 --- a/jdbc-datasource/src/main/java/org/acme/jdbc/JdbcRoutes.java +++ b/jdbc-datasource/src/main/java/org/acme/jdbc/JdbcRoutes.java @@ -30,7 +30,7 @@ public void configure() throws Exception { reviewMapping.put("good", 0); reviewMapping.put("worst", -1); - from("timer://insertCamel?period=1000&repeatCount={{etl.timer.repeatcount}}") + from("timer://insertCamel?period=10000&repeatCount={{etl.timer.repeatcount}}") .setBody().simple("DELETE FROM Target") .to("jdbc:target_db") .setBody().simple("SELECT * FROM Source") diff --git a/jdbc-datasource/src/test/java/org/acme/jdbc/JdbcTest.java b/jdbc-datasource/src/test/java/org/acme/jdbc/JdbcTest.java index 18b3de7e..f7a21fd1 100644 --- a/jdbc-datasource/src/test/java/org/acme/jdbc/JdbcTest.java +++ b/jdbc-datasource/src/test/java/org/acme/jdbc/JdbcTest.java @@ -32,7 +32,7 @@ public class JdbcTest { @Test public void etlBridgeShouldTransferValuesBetweenDatebases() { - await().atMost(30L, TimeUnit.SECONDS).pollDelay(500, TimeUnit.MILLISECONDS).until(() -> { + await().atMost(10L, TimeUnit.SECONDS).pollDelay(100, TimeUnit.MILLISECONDS).until(() -> { String hotelReviews = RestAssured .get("/getHotelReviews") .then()