Skip to content

Commit

Permalink
Fixed request context problem with deferred events and enabled the te…
Browse files Browse the repository at this point in the history
…sts.

git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2343 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Apr 8, 2009
1 parent 63f8a4d commit 22b0bfe
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@
package org.jboss.webbeans.event;

import org.jboss.webbeans.context.DependentContext;
import org.jboss.webbeans.context.RequestContext;
import org.jboss.webbeans.log.Log;
import org.jboss.webbeans.log.Logging;

Expand Down Expand Up @@ -49,6 +50,7 @@ public DeferredEventNotification(T event, ObserverImpl<T> observer)

public void run()
{
RequestContext.INSTANCE.setActive(true);
DependentContext.INSTANCE.setActive(true);
try
{
Expand All @@ -62,6 +64,7 @@ public void run()
finally
{
DependentContext.INSTANCE.setActive(false);
RequestContext.INSTANCE.setActive(false);
}
}

Expand Down

0 comments on commit 22b0bfe

Please sign in to comment.