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/in/ReferentialConsumerRoute.java | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/ReferentialConsumerRoute.java b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/ReferentialConsumerRoute.java
new file mode 100644
index 0000000..63f0615
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/ReferentialConsumerRoute.java
@@ -0,0 +1,30 @@
+package com.megatim.fdxconsultation.service.impl.camel.routes.in;
+
+import com.megatim.fdxcommons.model.pojo.ReferentielToImportData;
+import com.megatim.fdxcommons.tools.context.AppContext;
+import com.megatim.fdxconsultation.service.impl.camel.consumer.ReferentielDataConsumer;
+import com.megatim.fdxconsultation.service.resolvers.JacksonMapperFormat;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ *
+ * @author lenovo
+ */
+public class ReferentialConsumerRoute extends RouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+
+ from("rabbitmq:"
+ + AppContext.REFERENTIEL_INTEGRATION_EXCHANGE
+ + "?queue=" + AppContext.REFERENTIEL_INTEGRATION_QUEUE
+ + "&routingKey=" + AppContext.REFERENTIEL_INTEGRATION_ROUTING_KEY
+ + "&autoDelete=false"
+ + "&autoAck=false"//Désactiver l'auto acquittement du message
+ + "&durable=true")//permettre à l'échange de survivre à un redémarrage
+ .log("************************receiving ref from api before unmarshalling***********************")
+ .unmarshal(JacksonMapperFormat.jacksonDataFormat(ReferentielToImportData.class))
+ .bean(ReferentielDataConsumer.class);
+ }
+
+}
--
Gitblit v1.10.0