1 Reply Latest reply on Jan 23, 2007 1:46 PM by gavin.king

    Typo in Lifecycle.beginSession

    dilator

      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