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
---
fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/timers/DataIntegrationTimer.java | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/timers/DataIntegrationTimer.java b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/timers/DataIntegrationTimer.java
new file mode 100644
index 0000000..f24cb32
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/timers/DataIntegrationTimer.java
@@ -0,0 +1,31 @@
+package com.megatim.fdxconsultation.service.impl.camel.routes.timers;
+
+import com.megatim.fdxconsultation.service.impl.camel.routes.timers.processor.DataIntegrationProcessor;
+import com.megatim.fdxconsultation.tools.context.AppCommonContext;
+import javax.inject.Inject;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ *
+ * @author ASUS
+ */
+public class DataIntegrationTimer extends RouteBuilder {
+
+ @Inject
+ private DataIntegrationProcessor processor;
+
+ @Override
+ public void configure() throws Exception {
+
+ onException(Exception.class)
+ .handled(true)
+ .log("Exception occured: ${exception.message}")
+ .logStackTrace(true)
+ .end();
+
+ from("timer://" + AppCommonContext.DATA_INTEGRATION_TIMER + "?period=10000&delay=0&fixedRate=false&synchronous=true")
+ .log("*************************** In " + AppCommonContext.DATA_INTEGRATION_TIMER)
+ .throttle(1)
+ .bean(processor);
+ }
+}
--
Gitblit v1.10.0