From: Chris L. <chr...@jb...> - 2006-04-28 22:32:23
|
User: claprun Date: 06/04/28 18:32:22 Modified: wsrp/src/main/org/jboss/portal/wsrp/aspects/portlet SessionInterceptor.java Log: Forgot to commit SessionInterceptor to complete session handling... sorry! Revision Changes Path 1.2 +6 -3 jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/aspects/portlet/SessionInterceptor.java (In the diff below, changes in quantity of whitespace are not shown.) Index: SessionInterceptor.java =================================================================== RCS file: /cvsroot/jboss/jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/aspects/portlet/SessionInterceptor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- SessionInterceptor.java 25 Apr 2006 05:09:04 -0000 1.1 +++ SessionInterceptor.java 28 Apr 2006 22:32:22 -0000 1.2 @@ -25,6 +25,7 @@ import org.jboss.portal.common.invocation.InvocationException; import org.jboss.portal.portlet.invocation.PortletInterceptor; import org.jboss.portal.portlet.invocation.PortletInvocation; +import org.jboss.portal.wsrp.WSRPProducer; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; @@ -33,7 +34,7 @@ * Implements session handling for WSRP. * * @author <a href="mailto:chr...@jb...">Chris Laprun</a> - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * @since 2.4 */ public class SessionInterceptor extends PortletInterceptor @@ -48,7 +49,8 @@ invocation.invokeNext(); // get the new session id if any - String sessionId = getSessionId(drq.getSession(false)); + HttpSession session = drq.getSession(false); + String sessionId = getSessionId(session); // we need to deal with the session id if (sessionId != null) @@ -57,7 +59,8 @@ // with session, we need to inform MarkupHandler if (previousSessionId == null) { - invocation.setAttribute("portal.wsrp.session.id", sessionId); + invocation.setAttribute(WSRPProducer.SESSION_ID_ATTRIBUTE, sessionId); + invocation.setAttribute(WSRPProducer.SESSION_ATTRIBUTE, session); } } |