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

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

    Gus Gu Expert

      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