1 Reply Latest reply on Jul 11, 2009 1:15 AM by asookazian

    Seam-managed persistence context: requires @In?

      Maybe I'm stating the obvious here, but for a J2EE developer learning Seam... some reassurance is nice to have:


      When using seam-managed persistence contexts, is it always necessary to inject the EntityManager with @In or does the traditional @PersitenceContext also work? In the documentation, it reads:



      Now we can have our EntityManager injected using:
      @In EntityManager bookingDatabase;



      Not trying to be picky, but since @PersistenceContext will still work in a session bean component. Therefore I wonder if Seam will provide the EntityManager in both cases (i.e. it doesn't make a difference) or not (i.e. only the @In-injected entity manager is seam-managed).