3 Replies Latest reply on Jul 31, 2012 9:56 AM by jharting

    What will happen if both Sessionscoped and RequestScoped apply to  one class?

      I read JSR-299 Specification and confused by a problem in page 4. The example code is here:

       

      @SessionScoped @Model
      public class Login implements Serializable {
      ...
      }
      

      @Model is stereotype,  has @RequestScoped internally. So these code is equavilent to :

       

       

      @SessionScoped @RequestScoped @Named
      public class Login implements Serializable {
      ...
      }
      

      What will happen if both Sessionscoped and RequestScoped apply to  one class? I cann't find answer in specification. I hope somebody here can help me.