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

Moderator: admin

Post Reply
ETS User

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

Post 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?

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests