This content has been marked as final.
Show 3 replies
-
1. Re: annotation
system.out Jun 11, 2007 1:07 PM (in response to system.out)I also tried this:
<typedef name="MySessionBeans" expr="class($instanceof{javax.ejb.SessionBean}) AND class(org.jboss.injbossaop.ejb.*)" /> <bind pointcut="execution(* $typedef{MySessionBeans}->@Oneway(..))"> <interceptor class="org.jboss.injbossaop.lib.SimpleInterceptor"/> </bind>
With no success. I have getValue() method in org.jboss.injbossaop.ejb package annotated with @Oneway.
Please note that if I replace @Oneway with getValue, it will work!!
Maybe this syntax is not valid, however, I don't get any exceptions in AS. What I am looking for is abstracting method names with annotations. -
2. Re: annotation
kabirkhan Jun 11, 2007 1:33 PM (in response to system.out)YOu need to fully qualify the annotation e.g.
execution(* $typedef{MySessionBeans}->@org.blah.Oneway(..))
-
3. Re: annotation
system.out Jun 11, 2007 1:51 PM (in response to system.out)It rocks now! Thanks kabir for your prompt reply!
mike