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/in/TokenAuthentificationRoute.java | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/in/TokenAuthentificationRoute.java b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/in/TokenAuthentificationRoute.java
new file mode 100644
index 0000000..ed498b1
--- /dev/null
+++ b/apifdxweb/api/apifdxweb-service-impl/src/main/java/com/megatim/apifdxweb/service/impl/camel/routes/in/TokenAuthentificationRoute.java
@@ -0,0 +1,36 @@
+package com.megatim.apifdxweb.service.impl.camel.routes.in;
+
+import com.megatim.apifdxweb.service.impl.camel.consumers.ApiTokenMessageConsumer;
+import com.megatim.fdxcommons.model.jms.messages.ApiTokenMessage;
+import com.megatim.fdxcommons.tools.CommonAppContext;
+import com.megatim.fdxcommons.tools.resolvers.JacksonMapperFormat;
+import javax.enterprise.context.ApplicationScoped;
+import org.apache.camel.builder.RouteBuilder;
+
+/**
+ *
+ * @author ASUS
+ */
+@ApplicationScoped
+public class TokenAuthentificationRoute extends RouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+
+ onException(Exception.class)
+ .process(exchange -> {
+ exchange.getException().printStackTrace();
+ })
+ .handled(true);
+
+ from("rabbitmq:"
+ + CommonAppContext.TOKEN_GENERATION_EXCHANGE
+ + "?queue=" + CommonAppContext.TOKEN_GENERATION_QUEUE
+ + "&routingKey=" + CommonAppContext.TOKEN_GENERATION_ROUTING_KEY
+ + "&autoDelete=false")
+ .transacted()
+ .unmarshal(JacksonMapperFormat.jacksonDataFormat(ApiTokenMessage.class))
+ .bean(ApiTokenMessageConsumer.class);
+
+ }
+}
--
Gitblit v1.10.0