From 23a46b4be35277e06ec89f48730eeb694e686be8 Mon Sep 17 00:00:00 2001
From: Kenmegne <stephanie.kenmegne@gmail.com>
Date: Thu, 18 Jun 2026 15:40:06 +0000
Subject: [PATCH] add fdx-commons and fdx-consultation
---
apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/timers/DataIntegrationTimerRoute.java | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/timers/DataIntegrationTimerRoute.java b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/timers/DataIntegrationTimerRoute.java
new file mode 100644
index 0000000..b2bd1b3
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/timers/DataIntegrationTimerRoute.java
@@ -0,0 +1,31 @@
+package com.megatim.apifdxweb.service.impl.camel.routes.timers;
+
+import com.megatim.apifdxweb.service.ifaces.scheduler.TypeFichierDataJob;
+import com.megatim.apifdxweb.tools.AppContext;
+import javax.inject.Inject;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ *
+ * @author ASUS
+ */
+public class DataIntegrationTimerRoute extends RouteBuilder {
+
+ @Inject
+ private TypeFichierDataJob typeFichierDataJob;
+
+ @Override
+ public void configure() throws Exception {
+
+ onException(Exception.class)
+ .handled(true)
+ .log("Exception occured: ${exception.message}")
+ .logStackTrace(true)
+ .end();
+
+ from("timer://" + AppContext.DATA_INTEGRATION_TIMER + "?period=30000&delay=0&fixedRate=false&synchronous=true")
+ .log("*************************** In " + AppContext.DATA_INTEGRATION_TIMER)
+ .throttle(1)
+ .bean(typeFichierDataJob);
+ }
+}
--
Gitblit v1.10.0