Thanks Ben.  The class is a POJO, in that it extends ArrayList and adds a user 
ID property.  I created this class in order to try to take advantage of the 
ability to use the caching without "aspectizing" my class, as described in the 
FAQ, but as you have pointed out this only works if the class is not a POJO.  
With this in mind I'll go back to using my original class which contains an 
ArrayList and a String as members and try to properly "aspectize" this class so 
that it can be fully replicated by the TreeCacheAop.

Can you reference the definitive documentation which outlines how I should 
"aspectize" my class?  I have found two examples of how this should be done via 
the jboss-aop.xml file, but neither has worked for me so far.  For example in 
the jboss-cache 1.2 distribution there is a jboss-aop.xml (found in 
jboss-cache/etc/META-INF) which looks like this:

  | <aop>
  |   <advisable class="org.jboss.test.cache.test.standAloneAop.Address"
  |              fieldFilter="ALL"
  |              methodFilter="ALL"
  |              constructorFilter="ALL"
  |   />
  |   <advisable class="org.jboss.test.cache.test.standAloneAop.Person"
  |              fieldFilter="ALL"
  |              methodFilter="ALL"
  |              constructorFilter="ALL"
  |   />
  | </aop>
  | 

And in the TreeCacheAop document 
(http://docs.jboss.org/jbcache/TreeCacheAop.html) it looks like this:

  | <aop>
  |   <prepare expr="field(* 
$instanceof{org.jboss.test.cache.test.standAloneAop.Address}->*)" />
  |   <prepare expr="field(* 
$instanceof{org.jboss.test.cache.test.standAloneAop.Person}->*)" />
  | </aop>
  | 

Which, if either, of these approaches for jboss-aop.xml is correct?  If one or 
the other is to be used then perhaps I am missing some other piece of the 
puzzle, as I have tried both with no joy so far.


--James

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870222#3870222

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870222


-------------------------------------------------------
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

Reply via email to