Four Stars

URL of Service Locator from AngularJS client

i have created Rest WebService in talend studio with tRestRequest and tRestResponse. In tResrRequest I have enabled the checkbox for ServiceLocator.

I am able to access the Rest webservice as http://locahost:8040/services/customer/getAdress

 

Created Alternative container with port 8041 and deployed the same service. I able to access the Rest Webservice as 

http://localhost:8041/services/customer/getAddress

 

Now i want to access this webservice from Angular/JSp pages and also should use the ServiceLocator so that if one of the service is down , i will be able to get response from other.

 

in this what should be my URL so that i get response from if any one is down/unavalable.

 

if i give http://localhost:8041/services/customer/getAddress then i able to get the response and when i stop the service <html><body>No service was found.</body></html> is the response i got

 

i tried to access with  http://localhost:2181/services/customer/getAddress but not getting any response.

 

what should be my loadbalacing URL??

 

1 REPLY
Moderator

Re: URL of Service Locator from AngularJS client

Hello,


Now i want to access this webservice from Angular/JSp pages and also should use the ServiceLocator so that if one of the service is down , i will be able to get response from other.

 

in this what should be my URL so that i get response from if any one is down/unavalable.

 

if i give http://localhost:8041/services/customer/getAddress then i able to get the response and when i stop the service <html><body>No service was found.</body></html> is the response i got

 

i tried to access with  http://localhost:2181/services/customer/getAddress but not getting any response.

 

what should be my loadbalacing URL??

 


It looks like service locator doesn’t support for it. Could you please create a new feature/ work item jira issue of ESB project on talend bug tracker?

https://jira.talendforge.org/secure/Dashboard.jspa

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.