Skip to content

Commit

Permalink
remove undeploy exceptions, fix remaining incontainer tests
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1699 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Feb 25, 2009
1 parent 902bf31 commit 2802b75
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Expand Up @@ -88,6 +88,7 @@ protected void beginSession(String id, BeanStore sessionBeanStore)
protected void endSession(String id, BeanStore sessionBeanStore)
{
log.trace("Ending session " + id);
SessionContext.INSTANCE.setActive(true);
ConversationManager conversationManager = CurrentManager.rootManager().getInstanceByType(ConversationManager.class);
conversationManager.destroyAllConversations();
SessionContext.INSTANCE.destroy();
Expand Down
Expand Up @@ -19,7 +19,6 @@ public void setSession(HttpSession session)

@Produces
@RequestScoped
@WebBean
public HttpSession getSession()
{
return session;
Expand Down
Expand Up @@ -103,7 +103,10 @@ public void beginSession(HttpSession session)
*/
public void endSession(HttpSession session)
{
BeanStore mockRequest = new SimpleBeanStore();
super.beginRequest("endSession-" + session.getId(), mockRequest);
super.endSession(session.getId(), restoreSessionContext(session));
super.endRequest("endSession-" + session.getId(), mockRequest);
}

/**
Expand Down

0 comments on commit 2802b75

Please sign in to comment.