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/StandaloneServerStateConsumerRoute.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/StandaloneServerStateConsumerRoute.java b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/StandaloneServerStateConsumerRoute.java
new file mode 100644
index 0000000..01dd819
--- /dev/null
+++ b/fdx-consultation/fdxconsultation-service-impl/src/main/java/com/megatim/fdxconsultation/service/impl/camel/routes/in/StandaloneServerStateConsumerRoute.java
@@ -0,0 +1,26 @@
+package com.megatim.fdxconsultation.service.impl.camel.routes.in;
+
+import com.fdx.messaging.common.FdxMessagingContext;
+import com.fdx.messaging.common.StandaloneServerState;
+import com.megatim.fdxconsultation.service.impl.camel.consumer.StandaloneServerStateConsumer;
+import com.megatim.fdxconsultation.service.resolvers.JacksonMapperFormat;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ *
+ * @author ASUS
+ */
+public class StandaloneServerStateConsumerRoute extends RouteBuilder {
+
+    @Override
+    public void configure() throws Exception {
+
+        from("rabbitmq:"
+                + FdxMessagingContext.STANDALONE_SERVER_EXCHANGE
+                + "?queue=" + FdxMessagingContext.STANDALONE_SERVER_QUEUE
+                + "&routingKey=" + FdxMessagingContext.STANDALONE_SERVER_ROUTING_KEY
+                + "&autoDelete=false")
+                .unmarshal(JacksonMapperFormat.jacksonDataFormat(StandaloneServerState.class))
+                .bean(StandaloneServerStateConsumer.class);
+    }
+}

--
Gitblit v1.10.0