Java webapp (.war) external web.xml?

Hi all.

Is it possible to bring the file descriptor of the application web.xml from .war out? For example, the file context.xml you can put in the [tomcat]/conf/Catalina/localhost/[appname].xml. You can do the same trick web.xml?
July 9th 19 at 12:53
1 answer
July 9th 19 at 12:55
There like you can set a global DD global settings ($catalina.home/conf/web.xml) to fumble in their applications and inherit their configs.
I understand that it is global, but you can limit some of the settings only to a specific application?
Because other applications might need the same settings that they may want to apply in the same file. For example, you can put two of the same war file, but rename one of them. Then they will pull the same settings. And this is what I want to avoid. - ima.Halvorson commented on July 9th 19 at 12:58
: Take out there only what you want to fumble, and the rest by native web.xml - in case of conflict, they override the global. - Elna.Volkman92 commented on July 9th 19 at 13:01
: Yes, I understand that the application itself may overwrite option. But if both applications use a single parameter and inside they have the same default, then how to set these parameters different values via the global web.xml? After all, global web.xml you can specify only one value for one parameter. This is the main subtlety. - ima.Halvorson commented on July 9th 19 at 13:04
: Why you need to make in the global configuration-specific settings? - Elna.Volkman92 commented on July 9th 19 at 13:07
See the global configuration you have proposed. I tried to adapt your suggestion into account I have mentioned the thinness. In principle, for the same application a very good option. Ah! HERE IT IS! : it is possible for the application to configure another tomcat and deploy the same application, with their settings in the global conf/web.xml. Everything is fine. Fit. With memory problems there, so theoretically all happy! Thanks for the advice.
But if by chance there is a decision to make on a single server - I will be glad to hear.

You see. I give this application to the service and administrators were asked to give the opportunity to specify your application security settings to access the servlets. They have their own groups, different from my test. But the parameters they set in the external context.xml. So the application is fully parameterized and the parameters and security. - ima.Halvorson commented on July 9th 19 at 13:10

Find more questions by tags JavaWeb DevelopmentTomcat