在websphere 8.5配置全局过滤器 [英] Configuring global filter in websphere 8.5

查看:202
本文介绍了在websphere 8.5配置全局过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在websphere中注册所有web应用程序的过滤器类;最后在tomcat中,我在/conf/web.xml中指定了过滤器。我怎样才能在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆