Card 103 / 125: EJB 3 introduced quite easy interceptor class definition through annotations such as @PostConstruct, @PreDestroy, @PrePassivate, @PostActivate for lifecycle callback methods, and @AroundInvoke for or business methods. For what can you use EJB interceptor?
A)
keep track of the each method invocation duration and count
B)
catch technical exceptions to prevent it from propagating to the web teir
C)
provides a centralized point to query the databank tables
D)
implement the common business logic
Answer:
A) keep track of the each method invocation duration and count
B) catch technical exceptions to prevent it from propagating to the web teir
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |