1 Reply Latest reply on Jan 23, 2007 1:46 PM by Gavin King

    Typo in Lifecycle.beginSession

    Ben Catherall Newbie

      Hi Gavin,

      Found a typo in Lifecycle.beginSession


       if ( !eventContextActive )
       {
       tempEventContext = new MapContext(ScopeType.EVENT);
       Contexts.applicationContext.set(tempEventContext);
       }
      


      Should be:

       if ( !eventContextActive )
       {
       tempEventContext = new MapContext(ScopeType.EVENT);
       Contexts.eventContext.set(tempEventContext);
       }
      


      Pretty obscure - you only see the effects with Session scoped @Startup components and filters that aggressively (create=true) access the HttpSession.

      Cheers-Ben