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

    Can't use PersistenceContextType.EXTENDED

    benitojuarez

      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