I'm having a weird problem: if I change the file "jboss-aop.xml" in my eclipse project and try to start my AOP-Application, it's running without any aspects applied (the methods are not intercepted, like it's a normal java application).
However, I found out that if I change the code in a method which will be intercepted, the AOP-application runs as it should do (I think that you even have to change your code in ALL files that will be intercepted, but I did not test this thoroughly, sorry).
my jboss-aop.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <aop> <bind pointcut="execution(* eshop.pojo.EShopApp->*(..))"> <interceptor class="eshop.aop.TraceInterceptor"/> </bind> </aop>
int a = 0;