2 Replies Latest reply on Mar 14, 2008 9:31 AM by jebberwocky

    Stateful Annotation Exception

    jebberwocky

      Hello all
      When I try to migrate the Fans example to Seam 2.0, following exception throws



      javax.naming.NameNotFoundException: Name ManagerAction is not bound in this Context


      Here are the codes:
      ManagerAction.java


      @Stateful
      @Scope(SESSION)
      @Name("manager")
      public class ManagerAction implements Manager {
      
        @In (required=false) @Out (required=fal
      



      Manager.java


      public interface Manager {
        public String sayHello ();
        // public String startOver ();
        public void findFans ();
        public void setPid (Long pid);
        public Long getPid ();
        public String delete ();
        public String update ();
        public void destroy ();
      }



      But, if I remove the @Stateful annotation, the exception won't throws


      Does anyone know why?