Rafael Chies [
http://community.jboss.org/people/rafachies] created the discussion
"Pointcut expression with annotation (JBoss 4.3 vs JBoss 5.1)"
To view the discussion, visit:
http://community.jboss.org/message/625543#625543
--------------------------------------------------------------
Hi folks,
I went through this:
I have an application that uses JBoss AOP pointcut expression like this:
pointcut="all((a)org.chies.chiesaop.ChiesAnnotation)"
This used to work fine on JBoss AS 4.3 (using jboss aop 1.5.5). When I started using JBoss
5.1 (with jboss aop 2.1.6) the pointcut stopped working at runtime. I mean, there is no
problem on startup and nothing about exceptions, but the pointcut expression didn't
match anymore.
Doing some tests, I discovered that the problem is on my custom annotation
(ChiesAnnotation). I just put the Retention RUNTIME and the pointcut started working
normally.
I know how the Retention works on annotations, and also I agree that RUNTIME must be used
in this case. However, i would like to know why this works fine on JBoss 4.3 (AOP 1.5.5)
and not on JBoss 5.1. What is the implementation feature of JBoss 5.1/AOP 2.1.6 that makes
this use case stop working ?
Thanks in advice for the attention !
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/625543#625543]
Start a new discussion in JBoss AOP Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]