Skip to content

Commit

Permalink
WBRI-139, provide session for destruction
Browse files Browse the repository at this point in the history
Remove Seam taglib references from xhtml:s in numberguess

git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1495 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
nickarls committed Feb 12, 2009
1 parent 16c058b commit b5622fa
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -18,11 +18,13 @@
package org.jboss.webbeans.servlet;

import javax.context.Conversation;
import javax.context.SessionScoped;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.context.AbstractBeanMapContext;
import org.jboss.webbeans.context.ApplicationContext;
import org.jboss.webbeans.context.ConversationContext;
import org.jboss.webbeans.context.DependentContext;
Expand Down Expand Up @@ -84,6 +86,7 @@ public static void endSession(HttpSession session)
{
log.trace("Ending session " + session.getId());
SessionContext.INSTANCE.setBeanMap(new HttpSessionBeanMap(session));
CurrentManager.rootManager().getInstanceByType(HttpSessionManager.class).setSession(session);
ConversationManager conversationManager = CurrentManager.rootManager().getInstanceByType(ConversationManager.class);
conversationManager.destroyAllConversations();
SessionContext.INSTANCE.destroy();
Expand Down

0 comments on commit b5622fa

Please sign in to comment.