Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering timer less often and fixing few typos #183

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jdbc-datasource/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion jdbc-datasource/src/test/java/org/acme/jdbc/JdbcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading