6 Replies Latest reply on May 23, 2008 11:52 PM by Dan Allen

    EntityManager injection: @PersistenceContext or @In ??

    Ben Moore Newbie


      In my session beans, I can inject an an EntityManager instance using @PersistenceContext or @In. Both work, but what is the semantic difference? I realize @In uses Seam and @PersistenceContext goes directly through JPA.

      When would I use one instead of the other? Is one preferred?

      Thanks for any advice,