Hi Gordon,
Thanks for your reply. My test is:
1. Entity cache type: HardWeak; size: 35
2. Use a session bean to manage persist, gc and getSize by three bean
methods
3. Persist 50 entities
4. Call gc() a couple of time to clean the weak references
5. Call xxx.getSize() and then call xxx.getSize(MyEntity.class,true);
The first one gives result 50 and the second one gives 35. I tried several
times and always get the same results. I was wondering if the first one
should return 35 as well.
--
View this message in context: http://www.nabble.com/Some-questions-about-HardWeak-SoftWeak-cache-tp17354187p17396408.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.