I am having trouble deploying aspects withing JBoss AS. The issue is that I have the application which runs fine, but no aspects are applied. I am trying to use a combination of "org.jboss.aop.deployment.AspectManagerService" without pluggable-instrumentor.
The application is snipsnap and it's located under $JBOSS_HOME/server/default/deploy/jboss-aop-jdk50.deployer/snipsnap.war, which is an expanded directory. The reason I expanded the directory is because the application needs to store its setting, which would get wiped out if a war file is expanded each time.
The application runs just fine. However, I don't know how to package the aspects. I tried pretty much all combinations of locations without any success. I have a jboss-aop.xml file that looks like this
| 1 <?xml version="1.0" encoding="UTF-8"?>
| 2 <aop>
| 3 <bind pointcut="call(* org.snipsnap.*->*(..))">
| 4 <interceptor class="CallerInterceptor"/>
| 5 </bind>
| 6 </aop>
|
which is located under snipsnap.war/META-INF/. Class file CallerInterceptor is located under the snipsnap.war/ directory.
However, the aspect is just not being picked up. Please help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885107#3885107
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885107
|