Global Filter for all Web Applications

后端 未结 5 590
名媛妹妹
名媛妹妹 2021-01-21 22:39

In a J2EE application, how do I create a global Filter that can access other webapps installed on that app server?

5条回答
  •  甜味超标
    2021-01-21 22:48

    Some application servers/servlet containers (Tomcat, JBoss) provide the cross context feature. It does depend on what you're running your application within however, it's not a J2EE feature.

    http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

    I'm not sure whether this will help you in what you want to do. What is it exactly? : )

    Take a look at this response as well:

    What does the crossContext attribute do in Tomcat? Does it enable session sharing?

提交回复
热议问题