5 Replies Latest reply on Jul 25, 2011 5:26 PM by Jason Porter

    SeamManaged alternative to avoid LazyInitializationException

    Alexandr Areshchanka Newbie

      I didn't found good way to avoid LazyInitializationException.


      There are some discussions in this treads


      My Link


      My Link


      But in seam-persistence 3.0 final I didn't found
      annotaion @SeamManaged to provide transactions as mentioned in documentation for 3.0.0.Alpha1 and all CR's releases.



      @ExtensionManaged
      @ConversationScoped
      @Produces
      @PersistenceUnit(unitName="myPu")
      EntityManagerFactory emf;



      So question is how to avoid LazyInitializationException, what approach to do: phaseListener, producer, intercepter?


      Can anybody provide example how to do it right?


      Thanks, Alex.