[jboss-user] [JBoss AOP] - Re: How to avoid intercepting recursive calls

system.out do-not-reply at jboss.com
Fri Jun 8 09:11:21 EDT 2007


<cflow-stack> is not the one I am looking for.  There is no stack requirement in my case.  I think solution would be in <!within> keyword.
here is another example:
Pointcuts:
  |  prepare()
  |  authorize()
  |  post()
User/Client calls:
client ==> prepare() -> intercept it
  | client ==> authorize() -> intercept it
but if prepare() internally is calling authorize(), then:
client ==> prepare() -> intercept it
  | prepare ==> authorize()  // don't intercept it, as this call has been intercepted before within prepare method

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

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



More information about the jboss-user mailing list