4 Replies Latest reply on Jun 29, 2006 12:53 PM by gus888

    Stateful session bean vs. session Context, which one is bett

    gus888

      Hi all,

      I just begin to learn the seam technology. When learning the seam examples, I found there are two scenarioes to hold user's object, one is in issues example, which uses a sfsb "login", the other is in dvdstore, which uses a session context. I am wondering which one is better for a big project, or the same?

      In addition, I also found there are two annotations for EntityManager definition:

      @PersistenceContext
       private EntityManager em;
      
       @In(create=true)
       private EntityManager entityManager;
      

      The two definitions have the same function or not? Thank you very much in advance.

      GUS