From da85c539d1a0a67ad38defbc700e2c2dfed3696c Mon Sep 17 00:00:00 2001 From: uthmel Date: Thu, 17 Oct 2024 14:26:46 +0200 Subject: [PATCH] core --- .../OrderService/controllers/OrderController.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/booleanuk/OrderService/controllers/OrderController.java b/src/main/java/com/booleanuk/OrderService/controllers/OrderController.java index 39cdc87..c50fd86 100644 --- a/src/main/java/com/booleanuk/OrderService/controllers/OrderController.java +++ b/src/main/java/com/booleanuk/OrderService/controllers/OrderController.java @@ -4,6 +4,7 @@ import com.booleanuk.OrderService.models.Order; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatusCode; @@ -33,14 +34,16 @@ public class OrderController { private String topicArn; private String eventBusName; + @Autowired public OrderController() { this.sqsClient = SqsClient.builder().build(); this.snsClient = SnsClient.builder().build(); this.eventBridgeClient = EventBridgeClient.builder().build(); - this.queueUrl = ""; - this.topicArn = ""; - this.eventBusName = ""; + this.queueUrl = "https://sqs.eu-west-1.amazonaws.com/637423341661/uthmelOrderQueue"; + this.topicArn = "arn:aws:sns:eu-west-1:637423341661:uthmelOrderCreatedTopic"; + this.eventBusName = "uthmelCustomEventBus"; + this.objectMapper = new ObjectMapper(); }