This is an automated email from the ASF dual-hosted git repository.

benura pushed a commit to branch remove-eureka
in repository https://gitbox.apache.org/repos/asf/fineract-cn-accounting.git

commit de6efc7721842f5998a00a172b8c538bd49e9e19
Author: BLasan <[email protected]>
AuthorDate: Sat Apr 23 11:36:04 2022 +0530

    Remove Eureka & Client Side Load Balancer
---
 .../cn/accounting/api/v1/client/LedgerManager.java |  2 +-
 service/build.gradle                               |  3 ++-
 service/src/main/resources/application.yml         | 26 +++++++++++-----------
 3 files changed, 16 insertions(+), 15 deletions(-)

diff --git 
a/api/src/main/java/org/apache/fineract/cn/accounting/api/v1/client/LedgerManager.java
 
b/api/src/main/java/org/apache/fineract/cn/accounting/api/v1/client/LedgerManager.java
index dd8e0b1..ffec45a 100644
--- 
a/api/src/main/java/org/apache/fineract/cn/accounting/api/v1/client/LedgerManager.java
+++ 
b/api/src/main/java/org/apache/fineract/cn/accounting/api/v1/client/LedgerManager.java
@@ -50,7 +50,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestParam;
 
 @SuppressWarnings("unused")
-@FeignClient(value = "accounting-v1", path = "/accounting/v1", configuration = 
CustomFeignClientsConfiguration.class)
+@FeignClient(path = "/accounting/v1", url = "http://accounting-service:2025";, 
configuration = CustomFeignClientsConfiguration.class)
 public interface LedgerManager {
 
   @RequestMapping(
diff --git a/service/build.gradle b/service/build.gradle
index dacca72..4d3a857 100644
--- a/service/build.gradle
+++ b/service/build.gradle
@@ -44,7 +44,8 @@ bootRepackage {
 dependencies {
     compile(
             [group: 'org.springframework.cloud', name: 
'spring-cloud-starter-config'],
-            [group: 'org.springframework.cloud', name: 
'spring-cloud-starter-eureka'],
+            [group: 'org.springframework.boot', name: 
'spring-boot-starter-web'],
+//            [group: 'org.springframework.cloud', name: 
'spring-cloud-starter-eureka'],
             [group: 'org.springframework.boot', name: 
'spring-boot-starter-jetty'],
             [group: 'org.apache.fineract.cn.accounting', name: 'api', version: 
project.version],
             [group: 'org.apache.fineract.cn.customer', name: 'api', version: 
versions.frameworkcustomer],
diff --git a/service/src/main/resources/application.yml 
b/service/src/main/resources/application.yml
index 234f0b3..87d4628 100644
--- a/service/src/main/resources/application.yml
+++ b/service/src/main/resources/application.yml
@@ -17,19 +17,19 @@
 # under the License.
 #
 
-spring:
-  cloud:
-    discovery:
-      enabled: false
-    config:
-      enabled: false
-
-eureka:
-  client:
-    serviceUrl:
-      defaultZone: http://localhost:8761/eureka/
-  instance:
-    homePageUrl: "http://${eureka.hostname}:2025/accounting/v1/";
+#spring:
+#  cloud:
+#    discovery:
+#      enabled: false
+#    config:
+#      enabled: false
+#
+#eureka:
+#  client:
+#    serviceUrl:
+#      defaultZone: http://localhost:8761/eureka/
+#  instance:
+#    homePageUrl: "http://${eureka.hostname}:2025/accounting/v1/";
 
 server:
   port: 2025

Reply via email to