This content has been marked as final.
Show 3 replies
-
1. Re: Garbage collection and unit testing
ben.wang Dec 13, 2005 12:09 PM (in response to jlukar)Are you using putObject and removeObject apis?
-Ben -
2. Re: Garbage collection and unit testing
jlukar Dec 13, 2005 1:35 PM (in response to jlukar)"ben.wang@jboss.com" wrote:
Are you using putObject and removeObject apis?
-Ben
Just putObject and cache.remove("/");
I got around this anyways by ensuring that each test case runs in its own VM and in order.
thanks -
3. Re: Garbage collection and unit testing
ben.wang Dec 13, 2005 8:13 PM (in response to jlukar)Ok, try to use removeObject() instead of simply remove() as the former will properly disassociate the POJO from the interceptor. This is the proper way to do in pojo cache (TreeCacheAop) anyway.