0 Replies Latest reply on Mar 1, 2011 10:52 PM by Óscar López

    Injecting an entity manager in a SFSB

    Óscar López Newbie

      I'm using SFSB as my business components (they're Seam components, too); in this case what's the best practice for injecting the entity manager, using @In or an extended @PersistenceContext? will one of the two options cause me problems?


      If I choose to use @In and need to mark a method as non-transactional, should I use @Transactional(NEVER) or @TransactionAttribute(NEVER)? Same question, but what if I choose to inject the EM with @PersistenceContext?


      Thanks!