• Post Reply Bookmark Topic Watch Topic
  • New Topic

EPractice Labs final exam question 39

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • 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
Sheriff
Posts: 36032
432
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!

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!