3 Replies Latest reply on Nov 29, 2006 7:24 AM by Gavin King

    Seam Stateless Beans

    Frank Cornelis Apprentice

      I have this @Stateless bean with a setName() and getName() and a process() method. The first time I call process() via the page all is OK, but the second time the page calls getName() first, which still contains the previous value. Is there a way to clean this besides doing?

      public void process() {
       try {
       reallyProcess();
       }
       finally {
       this.name = null;
       }
      }
      

      I don't want to start a conversation for a single page. How does Seam handle the lifecycle of @Stateless beans?