2 Replies Latest reply on Sep 26, 2003 12:01 PM by Alex Paransky

    Reducing "refresh" SELECT(s) outside of a TX

    Alex Paransky Newbie

      While running inside of a TX, the entity beans are read once. However, if no TX is running, then entity beans are re-read every time they are accessed.

      I have a small number of read-only entity beans that will never be updated via the application. I would like to get the "read-once" behavior but without the TX.

      Certainly, I could continue to wrap a TX around these beans, but this locks the entity bean and could cause frequent deadlocks between multiple clients. So, I really don't want these beans locked, but I do want the "few" SELECT statements behaviour of a TX.

      Would any <cache...>, <read-ahead...> , <read-only..> type of tags help me out here?