[jboss-dev-forums] [JBoss AOP Development] - Pointcut expression with annotation (JBoss 4.3 vs JBoss 5.1)
Rafael Chies
do-not-reply at jboss.com
Thu Sep 8 10:46:36 EDT 2011
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(@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&containerType=14&container=2028]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110908/54a68636/attachment.html
More information about the jboss-dev-forums
mailing list