2 Replies Latest reply on Jun 24, 2008 10:16 AM by Adrien Orsier

    Can't use PersistenceContextType.EXTENDED

    Benito Juarez Newbie

      Hello,


      i try to process a long running transaction on database.


      The EntityManager ist injected as follows:



      @PersistenceContext(type=PersistenceContextType.EXTENDED)
      
      private EntityManager em;




      But when the application deploys, i got the following message:




      java.lang.RuntimeException: It is illegal to inject an EXTENDED PC into something other than a SFSB



      Can anyone tell me what SFSB means?
      thx
      BJ