• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Communicate between 2 Spring Boot microservices for UI

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Ranchers,
I'm new to Spring boot webservices. I've been trying to communicate between 2 Spring boot web Services for frontend. Here is my scenario:
* 1st microservice: It's for login and main (landing) page. User will enter his credential and upon successful login, he will see the main page; on the main page, there will be 4 different buttons. Clicking any of the button will take user to the appropriate module.
 Let's say: buttons are: "Go to Module1", "Go to Module2", "Go to Module3", "Go to Module4". Now my thought was to make each module as a microservice.
 
* 2nd microservice: for "MODULE 1"

I've been deploying both microservices in tomact in eclipse.

Now, Login-service (1st microservice) is working fine. And I can see the main-page where I can click the buttons to go to the different modules. Also for the 2nd microservice, if I explicitly hit http://localhost:8080/module1/empCenter/user1 I see the welcome page (which is expected).

But now the issue is, if I try to access the module-1 by clicking on the "Go to Module1", I don't see that welcome page; I get the blank page... no error anywhere. Even though I do see it goes to the controller in "MODULE 1" and call that view (I put a debug point in there).

Below is the restController from Login microservice from where I call the "Module1":



And here is the controller from MODULE_1 microservice:

reply
    Bookmark Topic Watch Topic
  • New Topic