Hi ! thanks for your answer !
Are you doing this on CVS head, or on 1.2 ? I am using cvs head, It was hard to download the cvs file, are the sources included in the distribution? i download that version but there are no sources there!. > Now I have this questions: > 1. My first draft design attempt to update all the caches is the cluster > but the one performing the operation, this because prepare and commits > avoid self :( . Any clues here? you wrote: On TX commit ? Yes. My design idea is to intercept the calls before the chain and skip it if the process is taking place (active)*. When I go directly to the methods in cache, I have an aspect to intercept the calls to findNode(fqn), this aspect will answer with the version in the workspace.** Once the system try to prepare or commit i will use the system with out modification(using the chain). * I also check: if the node needs to be created in the work space(new node && put method), I modify the transaction table with CRUD opps. ** It will read a copy from the actual cache, if it does not have one! The problem is that as i have not modified my current cache, i should tell it to apply the transaction but the commit and prepare methods skip self. I am missing something here? you wrote: Do you have any design documents regarding this ? Not yet. I am doing my draft design . But so far i Have: Things to refactor in aspects: 1. I destructively modify: - Node: I make it implements Versionable(my own interface). - Entry: I add a Map as a work space (ouch.. i said is a draft). - I modify cache to add my new interceptor. Aspects: - FindFqnAspect. To intercept calls when i am using optimistic locks. - NodeVersionAspect manage versioning, it has to know when to change a version and when not to do it. Regards Daniel. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867294#3867294 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867294 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
