1 Reply Latest reply on Aug 30, 2010 11:29 AM by Nicklas Karlsson

    The annotation @SessionScoped is disallowed for this location

    nimo stephan Master

      Why is this not allowed:



      @SessionScoped @Named
      public void login{


           @Produces @SessionScoped @LoggedIn
           public User getCurrentUser() {
                
                return user;
           }



      }


      You see, I want to use the SessionScoped in my producer Method.
      The comiler says: The annotation @SessionScoped is disallowed for this location