Deploy the same application multiple times on tomcat

I want to deploy the same applications several times on the same tomcat instance for different "clients". Since I had no experience with tomcat and other application servers, I have no reason to start. When I just create military files like app1.war and app2.war (based on the same code), it doesn’t work, bc military files are called different, but the project is still called the same, so tomcat is confused, I I think. So I really don’t know where to start. Another starting point is to have multiple tomcat sessions for each application, but I have the feeling that this is a waste of performance ...? I would advise if you could point me in the right direction.

Edit: I use different databases for different military files. I think this is a problem. How could I do this? Hurray, t

+4
source share
1 answer

This is not tomcat settings, but a workaround, but it has some advantages that you only need to change the application once for all users ...

You can use an identifier to identify the user who is accessing your application.

Then in your application you will use a different database based on the user id ...

0
source

Source: https://habr.com/ru/post/1380739/


All Articles