|
From: J. E. R. <er...@di...> - 2005-04-20 05:34:32
|
Hi, A Portlet is not a Servlet, a set of portlets are invoked directly by the portlet-container in one client request. The portlet spec says: "If the client request is triggered by an action URL, the portal/portlet-container must first trigger the action request by invoking the processAction method of the targeted portlet. The portal/portlet-container must wait until the action request finishes. Then, the portal/portlet-container must trigger the render request by invoking the render method for all the portlets in the portal page with the possible exception of portlets for which their content is being cached. The render requests may be executed sequentially or in parallel without any guaranteed order." Note that 'the render request may be executed IN PARALLEL', as I understand it, each render request could be executed on different threads. I think this feature advises against the use of OpenSessionInViewFilter class with portlets. >Well, if OpenSessionInViewFilter doesn't kick in for portlets, no other >filter will kick in with portlets either. Isn't there maybe some general >issue hiding there? > >Of course we can provide an OpenSessionInViewInterceptor for portlets, but >I'm not sure whether that's actually a good fit there. The Portlet request >flow with separate handle and render callbacks makes this less compelling. > >What we certainly can't do is let the existing OpenSessionInViewInterceptor >implement some PortletControllerInterceptor interface. That would force >every Servlet user to have the portlet.jar on the classpath. > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of Erwin Vervaet >Sent: Tuesday, April 19, 2005 9:26 PM >To: spr...@li... >Subject: [Springframework-developer] OpenSessionInView and portlet >support > > >Apparently the existing OSIV filter does not work with portlets: > >http://forum.springframework.org/viewtopic.php?t=4907 > >I guess we should tackle this issue when doing the Portlet support for 1.3. >There is no PortletMVC category in JIRA so I'm not sure where to file it... >Any input from the Porlet people? > >Erwin Vervaet >erw...@er... > > > >------------------------------------------------------- >This SF.Net email is sponsored by: New Crystal Reports XI. >Version 11 adds new functionality designed to reduce time involved in >creating, integrating, and deploying reporting solutions. Free runtime info, >new features, or free trial, at: http://www.businessobjects.com/devxi/728 >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > >------------------------------------------------------- >This SF.Net email is sponsored by: New Crystal Reports XI. >Version 11 adds new functionality designed to reduce time involved in >creating, integrating, and deploying reporting solutions. Free runtime info, >new features, or free trial, at: http://www.businessobjects.com/devxi/728 >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > -- J.Enrique Ruiz Director de I+D+I - DiSiD S.L.L. (http://www.disid.com) Tel +34 655 407 965 Email: er...@di... |