1

Is there any provision to implement filters for JSR-168 portlets similar to the servlet filters we normally configure in J2EE applications? Am basically new to using portlets and I am not sure if this question is already asked here. I searched and was not able to find an appropriate one.

My objective is to do a generic method call before the portlets are invoked each and every time. Am deploying the application in a OC4J-WSRP container. Is there any alternative approach to achieve this in case if there is no feature of filters?

4

1 回答 1

1

正如评论中提到的,JSR-168 没有 portlet 过滤器。但是,据我了解 WSRP,消费服务器和生产服务器之间的通信是通过 SOAP 完成的。这意味着您可以有一个位于两台服务器之间的过滤器,并根据需要处理 WSRP 请求和响应。

我不知道这会有多困难,因为我不熟悉 WSRP 的规范或实现细节,而且我不知道您当前的体系结构是否可行,但它是一个可能符合您要求的选项。

于 2013-07-23T18:53:53.137 回答