Communication between two web application in same server

后端 未结 5 1795
攒了一身酷
攒了一身酷 2020-12-09 10:41

All,

I have 2 web applications, Web1 and Web2, deployed on my tomcat server. I want classes in Web1 to call methods on classes in Web2. One way to do this is using

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 11:24

    Pretty much it is not that simple. You can share and import classes from your app1 into app2, but maybe they're all linked with other classes. So the idea is not so good except of small services like beans which are used to make calculations for example. There is a reason ppl are using web services so much ;).

提交回复
热议问题