1 Reply Latest reply on Dec 16, 2005 5:22 AM by Marius Oancea

    Design issue - advice

    Marius Oancea Novice

      Let's say we have the following UC:

      User can select a customer from a list for edit. He can change the customer detaiuls and press save to go back to the customer list.


      Design posibility 1:
      We make editCustomer action statefull (@Statefull). this action will have two methods:

      @Begin
      String showEdit() {
       ....
      }
      
      @End
      String doEdit() {
       ....
      }


      Design posibility 2:
      We make editCustomer action stateless (@Stateless) as in booking register action or Seam trailBlazer.

      ------------------------------------------------
      Pros and cons ?