在websphere 8.5配置全局过滤器 [英] Configuring global filter in websphere 8.5
问题描述
还有什么是websphere中的通用库(lib文件夹)。过滤器类在jar文件中,我想把这个jar文件放在websphere服务器的lib目录下。
-Thanks
它在WebSphere中。这已经在这里讨论了 - 所有Web应用程序的全局过滤器
WebSphere解决方案涉及创建自定义侦听器和程序附加过滤器。您可以在这里找到示例解决方案和描述 - 添加一个servlet过滤器所有的Web应用程序
Websphere中的通用库(lib文件夹)是什么?
您可以将jar放到 WebSphere \AppServer\lib\ext
目录由所有配置文件,服务器和应用程序共享,或通过Web控制台创建共享库 Environment>共享库
并将其附加到特定的服务器或应用程序。
I want to register filter class for all web application in websphere; Tipically in tomcat I specify filter in /conf/web.xml. How can I do this in Websphere 8.5.
Also what is the common library (lib folder) in websphere. The filter class is in jar file and I want to put that jar file in websphere server lib directory.
-Thanks
Unfortunately there is no easy way to do it in WebSphere. It was already discussed here - Global Filter for all Web Applications
WebSphere solution involves creating custom listener and programmaticaly attach filters. You can find sample solution and description here - Adding a servlet filter to all web applications
What is the common library (lib folder) in Websphere?
You can put your jar to WebSphere\AppServer\lib\ext
directory to be shared by all profiles, servers and apps, or create a shared library via web console Environment > Shared libraries
and attach it to the specific server or application.
这篇关于在websphere 8.5配置全局过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!