Jakarta ee 许多战争';s和一个常见操作

Jakarta ee 许多战争';s和一个常见操作,jakarta-ee,war,servlet-filters,modularity,Jakarta Ee,War,Servlet Filters,Modularity,我必须修改许多WAR起始页的内容以添加一些功能。我无法使用筛选器修改,因为筛选器需要放置在Web存档中。servlet等也一样。有什么线索吗?您可以修改容器的global web.xml。这将影响所有应用程序: This document defines default values for *all* web applications loaded into this instance of Tomcat. As each application is deployed, this file

我必须修改许多WAR起始页的内容以添加一些功能。我无法使用筛选器修改,因为筛选器需要放置在Web存档中。servlet等也一样。有什么线索吗?

您可以修改容器的global web.xml。这将影响所有应用程序:

This document defines default values for *all* web applications
loaded into this instance of Tomcat.  As each application is
deployed, this file is processed, followed by the
"/WEB-INF/web.xml" deployment descriptor from your own applications.

或者,您可以为特定主机(将运行所有WAR)实现一个安装在server.xml中的容器。

您可以修改容器的global web.xml。这将影响所有应用程序:

This document defines default values for *all* web applications
loaded into this instance of Tomcat.  As each application is
deployed, this file is processed, followed by the
"/WEB-INF/web.xml" deployment descriptor from your own applications.

或者,您可以为特定的主机(将运行所有的WAR)实现一个安装在server.xml中的应用程序。

好的,但是如何访问EJB?要处理所有起始页,我需要访问EJB。我忘了提到我所有的WAR、ejb JAR等都打包在EAR中。好的,但是我如何访问我的ejb呢?要处理所有起始页,我需要访问EJB。我忘了提到我所有的WAR、ejb jar等都打包在EAR中。