Foros de discusión

Portlets and Servlet 3.0 Asynch

Dana Oredson, modificado hace 12 años.

Portlets and Servlet 3.0 Asynch

Junior Member Mensajes: 70 Fecha de incorporación: 14/10/08 Mensajes recientes
Does the portlet 2.0 specification allow portlets to support the Servlet 3.0 Asynchronous feature? Or is it simply that when a portlet receives a resource request, you dig down to the underlying HttpServletRequest and call startAsync() and continue from there?

Are there any examples of how to do this in a portlet?
thumbnail
David H Nebinger, modificado hace 12 años.

RE: Portlets and Servlet 3.0 Asynch

Liferay Legend Mensajes: 14914 Fecha de incorporación: 2/09/06 Mensajes recientes
In general you should try not to cross those boundaries simply because you have no idea what the portal container is going to do on your behalf...

The portal is proxying the request for the portlet, and as part of that proxy the original (actual) request might be wrapped in some form or another, so affecting this change at the portlet level might not be effective and possibly could hose things in the portal.

If I had to approach this, I'd probably do an ext plugin to put a filter in place for the portal's incoming resource request. The filter would ensure the async stuff is handled.

But depending upon what LR may or may not do in the rest of the filter chain and/or processing might foil this effort anyway...
thumbnail
Robin Nagpal, modificado hace 9 años.

RE: Portlets and Servlet 3.0 Asynch

Junior Member Mensajes: 44 Fecha de incorporación: 18/11/14 Mensajes recientes
Dana Oredson:
Does the portlet 2.0 specification allow portlets to support the Servlet 3.0 Asynchronous feature? Or is it simply that when a portlet receives a resource request, you dig down to the underlying HttpServletRequest and call startAsync() and continue from there?



So how did you do try to solve the async problem ?