0 Replies Latest reply on Dec 10, 2002 4:33 AM by xieby2001

    How to use stateful EJB to record client's status?

    xieby2001 Newbie

      How to use stateful EJB to record client's status? For example, I have a CartBean, client can invoke add method to add a book, or remove to remove a book from cart.
      After client login, server creates a CartBean instance for him, but when the client change to other pages, how can I get the CartBean instance which was created for him.
      For example, client login by login.jsp, in this page, I create a CartBean instance for the client. After login, client may visit my bookStore.jsp, in this page, he can buy some books by invoke add method or remove book by remove method. My problem is how can I get the CartBean Instance in bookStore.jsp?