I'm trying to get the TreeCacheAop running inside JBoss. TreeCache was no problem but I'm stuck with this exception.
java.lang.IllegalArgumentException: TreeCacheAop.putObject(): Object type is neither aspectized nor Serializable
Meanging that my object isn't aspectized, ok. How can i achieve this?
The tutorial says: "To declare a POJO via XML configuration file, you will need a META-INF/jboss-aop.xml file located under the class path."
I put an xml under : jboss-aop-jdk50.deployer\META-INF, but this didn't help.
Is this the right place? and if it is where do i have to state the usage of my xml file?
THe easiest way to run TreeCacheAop under AS is to pre-compile the pojo using aopc. That way, you don't need jboss-aop.xml anymore once it is done.
But if you need to do loadtime instrumentation, you will need to consult the JBossAop documentation: