Oracle
1Z0-895 · Question #37
A developer writes three interceptor classes: AInt, BInt, and CInt. Each interceptor class defines an AroundInvoke method called interceptor. In the ejb-jar.xml descriptor, CInt is declared as the…
Sign in or unlock 1Z0-895 to reveal the answer and full explanation for question #37. The question stem and answer options stay visible for context.
Interceptors
Question
A developer writes three interceptor classes: AInt, BInt, and CInt. Each interceptor class defines an AroundInvoke method called interceptor. In the ejb-jar.xml descriptor, CInt is declared as the default interceptor. FooBean is a stateless session bean with a local business interface Foo that declares a method Foo (): 10. @Stateless 11. @Interceptors(AInt.class) 12. public class FooBean Implements Foo { 13. 14. @Interceptors (BInt.class) 15. @ExcludeClassInterceptors 16. public void foo () {} 17. } What is the interceptor order when the business method foo () is invoked?
Options
- ABInt
- BCInt, BInt
- CCInt, AInt, BInt
- DBInt, AInt, CInt
Unlock 1Z0-895 to see the answer
You've previewed enough free 1Z0-895 questions. Unlock 1Z0-895 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#interceptor ordering#default interceptors#ExcludeClassInterceptors#AroundInvoke