This content has been marked as final.
Show 3 replies
-
1. Re: TreeCacheAop not persisting results to all cache referen
brian.stansberry Oct 12, 2005 8:15 PM (in response to vasagotempest2)First, yes, you will need to aspectize your POJO.
Second, the API you want to use iscache.putObject("/root", myObj);
and((MyObject)cache.getObject("/root")).set("newvalue")
If you were planning on storing multiple POJOs under root with different "uniqueId"s as the key, just add the unique id as another level in the FQN.
The other API is for plain cache usage only and doesn't use the AOP features. -
2. Re: TreeCacheAop not persisting results to all cache referen
vasagotempest2 Oct 13, 2005 11:09 AM (in response to vasagotempest2)Thanks for the info... could you point me to some documentation or tutorials on how to aspectize my POJO?
-
3. Re: TreeCacheAop not persisting results to all cache referen
stemeyda Oct 13, 2005 3:06 PM (in response to vasagotempest2)It is also referred to as "instrumentation".
http://docs.jboss.com/jbcache/1.2.4beta/TreeCacheAop/html/instrumentation.html
Note that TreeCacheAop does not support jdk5 annotations as of yet (that I am aware of) so you have to use an annotation precompiler.
Example:
1. add a marker to the class:
/**
* @@org.jboss.cache.aop.AopMarker
*/
public class Address {...}
2. use the annotation precompiler "aopc" (see example in JbossCache ant build file target )against the marked class. (Make sure the jboss-aop.xml file is in the classpath).