thankyou for your suggestion. i tried adding this to my TreeCache (not aop):
class debugListener implements TreeCacheListener {
|
| public void nodeCreated(Fqn fqn) {System.out.println( "**
node added: " + fqn);}
| public void nodeRemoved(Fqn fqn) {System.out.println( "**
node removed: " + fqn);}
| public void nodeModified(Fqn fqn) { System.out.println( "**
node modified: "+ fqn);}
| public void nodeLoaded(Fqn fqn) { System.out.println("**
node loaded: " + fqn);}
| public void nodeEvicted(Fqn fqn) {System.out.println("*** node
evicted: " + fqn);}
| public void nodeVisited(Fqn fqn) {}
| public void cacheStarted(TreeCache cache) {}
| public void cacheStopped(TreeCache cache) {}
| public void viewChange(View new_view) { System.out.println("**
view change: " + new_view);
| }
|}
unfortunately my object still changed without printing a "node modified"
statement. so i know it has to be something i'm doing wrong. but how do i
find it?
the actual part of my object that actually changes is a 'private member' (an
int[]). the accessor method does not even get called (i tried printing stuff
there).
i tried putting a breakpoint on it but there are hundreds of of these objects
-- with hundreds of legitimate accesses.
the weird part of the problem is that it only happens after like 30 min with
other objects being accessed.
sorry i'm rambling on here... here's my questions:
1) are there any timeout values in the treecache that i may not know about
(this a local cache)
2) i do implement clone(), hashCode(), toString() in all of my objects... (i've
looked at them and they seem ok). does treecache call these methods after a
long period of time?
3) is there a debugger that can show me all instances of an object and let me
put a breakpoint on just one of them?
4) is there a tool the will let me see all of the references to an object
(maybe some strange piece of code still has a refeference to my object and i
don't know about it)
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877766#3877766
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877766
---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user