[jboss-user] [JBoss AOP] - Re: annotation

system.out do-not-reply at jboss.com
Mon Jun 11 13:07:00 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053202#4053202

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053202



More information about the jboss-user mailing list