0 Replies Latest reply on Oct 12, 2011 4:15 PM by mschmidke

    Persistence Context Scope

    mschmidke

      Hello all,

       

      I've another question regarding my migration from Seam 2 / JBoss 5 to plain AS7.

       

      With Seam managed transactions and Seam managed persistence contexts, I never had to worry about things like Lazy Initialization Exception and so on. I always could rely on the Persistence Context lasting during the full request-response-cycle.

       

      Without Seam, the Persistence Context seems to end when SLSB method ends. So when the frontend needs some lazy initialized data, I run in problems bzw. I have to initialize them in SLSB method.

       

      Can I extend the Persistence Context life to the whole Request?

       

      Marcus.