3 Replies Latest reply on Apr 14, 2007 6:45 PM by pmuir

    @Scope(SESSION) SESSION cannot be resolved

    ejbengine

      I'm using JBOSS IDE and am getting the error message "SESSION cannot be resolved" in my entity class even though I have the correct import
      import org.jboss.seam.ScopeType;

      However, when I specify the @Scope annotation with the fully qualified name of the attribute as
      org.jboss.seam.ScopeType.SESSION
      the error goes away.


      I thus do not understand why :

      import org.jboss.seam.ScopeType;
      
      @Scope(SESSION)


      gives the "SESSION cannot be resolved" compilation error message

      and yet

      @Scope(org.jboss.seam.ScopeType.SESSION)


      works

      jeff mutonho