Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.398 :

Posted: Sat Oct 06, 2012 2:55 am
by ETS User
Bug?

"Order of interceptor invocation is: default interceptors, class intercepters, method interceptors, and then @AroundInvoke defined in the bean class itself."

Green answer is
"In selfAround" followed by "In getCode" and "In iam1"
but should really be



""In getCode" followed by "In iam1" and "In selfAround" , right?

Re: About Question enthuware.oce-ejbd.v6.2.398 :

Posted: Sat Oct 06, 2012 4:27 pm
by admin
The given answer is correct. method interceptor iam1(), from Interceptor A is indeed invoked first. But the println in this method is coded after ic.proceed(). So it will be printed at the end.

HTH,
Paul.