I've been able to get loadtime weaving going, but not hotswap weaving. I was wondering if anyone might be able to help me get over this hurdle.
To prepare the environment for HotSwap, I've tried going the following
<aop xmlns="urn:jboss:aop-beans:1.0">
<prepare expr="all(mypackage.MyClass)" />
</aop>
Now, when I start the server, my application gets loaded, I can the URL for MyClass, just fine. However, my hope is that when I place a file called myaspects-aop.xml into $JBOSS_HOME/server/all/deploy, then MyClass would automatically get instrumented with the aspect below, which just logs that it has been invoked. However, that is not happening.
<aop xmlns="urn:jboss:aop-beans:1.0">
<aspect class="mypackage.MyAspect" scope="PER_JOINPOINT">
</aspect>
<bind pointcut="execution( * mypackage.MyClass->*(..) )">
<advice aspect="mypackage.MyAspect" />
</bind>
</aop>
Any insight would be most appreciated!
Hi Mark,
Did you try to solve this issue? I am also stuck with this. Please do let me know, it would be really realls helpful.
Thanks,
Karthi