On Mar 16, 2007, at 11:27 AM, Prasad Kashyap wrote:

May I please draw your attention to section 12.3.1 of the ejb-core
spec. The section is titled, "Multiple Business Method Interceptor
Methods"

After reading bullets 2 and 4, I can conclude that an interceptor's
superclass @AroundInvoke method is first invoked after which the
interceptor's @AroundInvoke method is invoked. Am I right ?

Next, it is also my understanding that you do not have to explicitly
list the interceptor's superclass in the @Interceptors({}) annotation.
If the child interceptor is listed, then any superclass interceptor is
automatically invoked. Is that a correct understanding ?

Right on both counts. An exception is when the child class overrides the super class's AroundInvoke method (same with PostCreate, PreDestroy, PrePassivate and PrePassivate), in which case the super class's method is then "disabled" and now not invoked as part of the chain. We don't actually support that yet, but we need to.

-David

Reply via email to