[ 
https://issues.apache.org/jira/browse/FINCN-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Juhan Aasaru updated FINCN-183:
-------------------------------
    Description: 
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

 

I'll work on this

  was:
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

 


> 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
>            Priority: Major
>
> 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
>  
> I'll work on this



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

Reply via email to