[jboss-user] [JBoss AOP] - Re: Interceptor chain problem

Kronbe do-not-reply at jboss.com
Fri Aug 29 04:53:04 EDT 2008


Sorry for the bad post - here once again with correct code-formatting:


Thanks for quick response.

So I have Stateless Beans where I annotate the methods with @MyAnnotation("..."). In my aop-project I've defined the following pointcut:


  |  <bind pointcut="execution(public * cobeco.*->@myPackage.MyAnnotation(..))">
  | 		 <interceptor-ref name="Interceptor"/>
  |   	</bind>
  | 

In my interceptor I override the Interface invoke(Invocation invocation) method. In this method I my business code is located. After processing my business code i leave the method with 
return invocation.invokeNext();

My Interceptor implements  org.jboss.aop.advice.Interceptor. I'm using JBoss application Server 4.2.2 with jboss-aop-1.5.6.GA. 

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

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



More information about the jboss-user mailing list