[jboss-user] [JBossCache] - Re: PojoCache with Compile Time Weaving on JBoss 4.2.0 ?
mbroons
do-not-reply at jboss.com
Wed Jul 18 05:29:50 EDT 2007
1) I removed jboss-web-cluster.sar from the distribution and it
worked fine.
2) I used the following jboss-aop.xml for aopc compilation and it worked fine.
<?xml version="1.0" encoding="UTF-8"?>
| <aop>
|
| <!-- If a POJO has JDK5 PojoCacheable annotation, it will be aspectized. -->
| <prepare expr="field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)" />
|
| <!-- Make any POJO with a JDK5 PojoCacheable annotation as a Subject/Observerable -->
| <bind pointcut="set(* @org.jboss.cache.aop.annotation.PojoCacheable->*)">
| <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
| </bind>
|
| <introduction class="@org.jboss.cache.aop.annotation.PojoCacheable">
| <mixin>
| <interfaces>org.jboss.aspects.patterns.observable.Subject</interfaces>
| <class>org.jboss.aspects.patterns.observable.SubjectImpl</class>
| <construction>new org.jboss.aspects.patterns.observable.SubjectImpl(this)</construction>
| </mixin>
| </introduction>
|
| <!-- If a POJO has JDK5 InstanceOfPojoCacheable annotation, it will be aspectized. -->
| <prepare expr="field(* $instanceof{@org.jboss.cache.aop.annotation.InstanceOfPojoCacheable}->*)" />
|
| <!-- Make any POJO with a JDK5 InstanceOfPojoCacheable annotation as a Subject/Observerable -->
| <bind pointcut="set(* @org.jboss.cache.aop.annotation.InstanceOfPojoCacheable->*)">
| <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
| </bind>
|
| <introduction class="@org.jboss.cache.aop.annotation.InstanceOfPojoCacheable">
| <mixin>
| <interfaces>org.jboss.aspects.patterns.observable.Subject</interfaces>
| <class>org.jboss.aspects.patterns.observable.SubjectImpl</class>
| <construction>new org.jboss.aspects.patterns.observable.SubjectImpl(this)</construction>
| </mixin>
| </introduction>
|
| </aop>
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065306#4065306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065306
More information about the jboss-user
mailing list