[jboss-user] [EJB 3.0] - Annotations with interceptor behavior
dsouza42
do-not-reply at jboss.com
Wed Feb 21 16:05:51 EST 2007
I was reading in Bill Burke's "Enterprise JavaBeans 3.0" book that I can create an annotation that will take on an interceptor's behavior by declaring the annotation itself with an interceptor such as in the example:
| @Interceptors(com.titan.interceptors.AuditInterceptors)
| public @interface Audit{
| }
|
So that this:
| @Audit
| public Object myMethod(){
| }
|
would be the same as placing the actual interceptor on my method. However, it's just not working for me. If I use a regular interceptor everything is fine, but if I try to do the annotation thing it doesn't work. The interceptor is simply not called.
I also was carefull to create the annotation with a Runtime retention type and appropriate target but still, nothing.
Any ideas on what I might be doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020243#4020243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020243
More information about the jboss-user
mailing list