Question 2
Posted: Sat Feb 07, 2015 9:28 am
A developer writes an interceptor class containing an AroundInvoke method, and applies it to thelocal business interface method of a stateless session bean:11. @Interceptors(FooInterceptor.class)12. public void bar() ()A client obtains a reference to the beans local business interface, and calls the method bar twotimes from the same thread. Assuming that the container dispatches both cell to the samestateless session bean instance, how many instances of the FooInterceptor class will be used?
A.0
B.2
C.1
D.Either 1 or 2
the answer is 2 why ????? can you help me
A.0
B.2
C.1
D.Either 1 or 2
the answer is 2 why ????? can you help me