6 Replies Latest reply on Sep 11, 2007 11:14 PM by matt.drees

    Does seam pojo component support long running conversations?

    milli

      From the document I see the seam pojo component is stateful and has the default conversation scope. It also supports long running conversation. But it does not work for me. Is my understanding wrong or am I doing something wrong in my code? Any help is appreciated.

      @Name("transactionPage")
      public class TransactionPage extends AbstractPage {
      ......
      @Create
      public void initialize() {
       log.debug("************transactionPage created*****************");
      }
      
      @Begin
      public String initiatePayment {
      ....
      return null;
      }
      
      public String confirmDetails {
      .....
      return null;
      }
      
      @End
      public String confirmed {
      ....
      return null;
      }
      }


      I have transaction.xhtml calling actions initiatePayment, confirmDetails and confirmed after every step.

      What I notice is the method initialize(included for debuggin) is called everytime and resetting all the state stored from previous step. In a long running conversation I believe it should be called only once.

      Thanks