2 Replies Latest reply on Apr 10, 2005 8:33 PM by Erez Efrati

    read ahead ,collection and stateful session bean

    Erez Efrati Newbie

      I have a stateful session bean that keeps a collection of objects selected by running a finder marked with on-load read ahead strategy.

      Thing is, I think that the next call from my web app to the stateful session bean, trying to run through some objects in the collection the preload cache or the lists cache is gone and read ahead strategy is not working.
      I guess this has to do with the fact that there are two transactions in the story involved. In the first the collection is retrieved/selected using the finder. Then the second transaction accesses the object in that collection.

      Is this true that the lists cache of the collection is gone when the first tranaction is done? If so, then I think that it is wrong, since the stateful supposed to be STATEFUL.

      Thanks,

      Erez