Reputation: 75
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?
Upvotes: 1
Views: 245
Reputation: 3077
As mentioned in the comments, JSR-168 doesn't have portlet filters. However, as I understand WSRP, the communication between the consuming and producing servers is done via SOAP. This means you could have a filter that sits in between the two servers and manipulates the WSRP requests and responses as needed.
I don't know how difficult this would be since I'm not familiar with the specification or implementation details of WSRP and I don't know your current architecture if it would even be possible but it is an option that may fit your requirements.
Upvotes: 1