This content has been marked as final.
Show 1 reply
-
1. Re: EJB2 findByPrimaryKey caches sometimes but not others.
chrismm Jan 3, 2007 6:49 AM (in response to chrismm)This was due to the fact that the AS only caches data when its accessed, not when findByPrimaryKey is called. One of the tests printed out the returned entity (and hence it was cached) and the other didnt (and hence it wasnt cached).