2 Replies Latest reply on Sep 23, 2009 11:01 PM by Jean Luc

    injected EntityManager in EJBs and POJOs

    Rob Shepherd Newbie

      If I have a @Stateful session bean,

      then a merge(entity); flush(); permits me to either persist or update a new or detached entity.

      If I turn the bean in to a regular POJO seam component, then it doesn't persist the entity.

      Can anybody explain why?

      In a @Stateful EJB, is a @In EntityManager SEAM or Container managed?