Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EPractice Labs final exam question 39

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which of the following statements are true about EJB interceptors?
...
D. There can only be one interceptor method per class.

This is one of the correct model answer.
But I don't think it is because in one interceptor class annotated by @Interceptor, there is only one @AroundInvokeMethod, may also have a @PostConstruct, @PreDestroy....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. Oracle even shows an example in the Java EE 6 tutorial that uses multiple interceptors. The @Interceptors annotation wouldn't exist if you couldn't use multiple interceptors!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic