From 97877eb3209dd88e83a7e5d884c21350cb3c861c Mon Sep 17 00:00:00 2001 From: Surabhi Date: Mon, 10 Jan 2022 16:10:32 +0530 Subject: [PATCH] changes --- .../Application/AppConfigOrchestrator.java | 12 ++++++------ src/main/resources/application.properties | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/uci/orchestrator/Application/AppConfigOrchestrator.java b/src/main/java/com/uci/orchestrator/Application/AppConfigOrchestrator.java index 109efc0..98131f3 100644 --- a/src/main/java/com/uci/orchestrator/Application/AppConfigOrchestrator.java +++ b/src/main/java/com/uci/orchestrator/Application/AppConfigOrchestrator.java @@ -69,12 +69,12 @@ public CampaignService getCampaignService() { return new CampaignService(webClient, fusionAuthClient, cache); } -// @Bean -// public KieSession DroolSession() { -// Resource resource = ResourceFactory.newClassPathResource("OrchestratorRules.xlsx", getClass()); -// KieSession kSession = new DroolsBeanFactory().getKieSession(resource); -// return kSession; -// } + @Bean + public KieSession DroolSession() { + Resource resource = ResourceFactory.newClassPathResource("OrchestratorRules.xlsx", getClass()); + KieSession kSession = new DroolsBeanFactory().getKieSession(resource); + return kSession; + } @Bean Map kafkaConsumerConfiguration() { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 848383c..6ccd8d6 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -40,7 +40,7 @@ fusionauth.key = ${FUSIONAUTH_KEY} encryptionKeyString=A%C*F-JaNdRgUkXp -spring.r2dbc.url=r2dbc:postgresql://${FORMS_DB_HOST}:${FORMS_DB_PORT}/${FORMS_DB_NAME} +spring.r2dbc.url=r2dbc:${FORMS_DB_URL} postgresql.db.host=${FORMS_DB_HOST} postgresql.db.port=${FORMS_DB_PORT} spring.r2dbc.name=${FORMS_DB_NAME}