-
1. GenericPortlet Statistics
hoang_to Mar 4, 2011 3:40 AM (in response to timkelley)1 of 1 people found this helpfulWhat kind of statistic info you want to monitor? The ApplicationStatisticLifecycle is an utility applied only to WebUI portlet
About GenericPortlet, i see there are two ways to monitor portlet within the scope of a request/response
1. Create a Portlet Filter, then define the filter-mapping for each portlet definition
2. Inject an interceptor in the Portlet Container service
-
2. GenericPortlet Statistics
timkelley Mar 4, 2011 12:15 PM (in response to hoang_to)Could you provide some reference for injecting an interceptor into the Portlet Container Service? I have been looking at the PortletInvokerInterceptor, and am not sure on how to configure an additional interceptor into the portlet container.
Thanks for your help.
Tim
-
3. GenericPortlet Statistics
hoang_to Mar 6, 2011 9:47 PM (in response to timkelley)The interceptor in PC is designed as a chain of responsibility. You could inject a custom interceptor in the chain by following those steps:
1. Implement a custom PortletInvokerInterceptor
2. Create a Startable object, depending on ExoKernelIntergration service (to make sure that the ExoKernelIntegration and PorltetInvoker component are started before your Startable object)
3. In the start() method of your Startable object, retrieve the PortletInvoker, make a while loop on the list of PortletInvokerInterceptor binding to the PortletInvoker and add your custom interceptor
You could find analogous code in the class WSRPServiceIntegration