Juhan Aasaru created FINCN-183:
----------------------------------

             Summary: rhythm BeatPublisherService cannot access portfolio via 
Eureka
                 Key: FINCN-183
                 URL: https://issues.apache.org/jira/browse/FINCN-183
             Project: Fineract Cloud Native
          Issue Type: Improvement
            Reporter: Juhan Aasaru


In 

BeatPublisherService

method

publishBeat

app url is pulled from Eureka

List<ServiceInstance> applicationsByName =

discoveryClient.getInstances(applicationIdentifier);

ServiceInstance beatListenerService = applicationsByName.get(0);

final BeatListener beatListener = apiFactory.create(BeatListener.class, 
beatListenerService.getUri().toString());

 

but the problem is that getUri() returns the URL of Portfolio without context 
path (without '/portfolio/v1).

For this need to rewrite EurekaClient to use getHomePageUrl() instead

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to