Oracle
1Z0-895 · Question #39
How many interceptor classes can be applied to a single stateful session bean?
The correct answer is B. any number may be applied. The @Interceptors annotation can take an array of classes, so you can bind more than one class- level interceptor this way, e.g. @Stateless @Interceptors ({TracingInterceptor.class, SomeInterceptor.class}) public class EmailSystemBean EJB Interceptors
Interceptors
Question
How many interceptor classes can be applied to a single stateful session bean?
Options
- Aa maximum of one
- Bany number may be applied
- Cone for each business method
- Done for each business interface
How the community answered
(55 responses)- A9% (5)
- B71% (39)
- C5% (3)
- D15% (8)
Explanation
The @Interceptors annotation can take an array of classes, so you can bind more than one class- level interceptor this way, e.g. @Stateless @Interceptors ({TracingInterceptor.class, SomeInterceptor.class}) public class EmailSystemBean EJB Interceptors
Topics
#interceptor classes#stateful session bean#multiple interceptors
Community Discussion
No community discussion yet for this question.