Card 51 / 59: What are the restrictions imposed by the EJB 3.x container on the implementation of life cycle event handlers (e.g. PostConstruct, PreDestroy,...)?
A)
a session bean method cannot be annotated with more than one life cycle callback event.
B)
callback handler methods may have any access modifier
C)
each lifecycle callback event can be handled by maximum one session bean method
D)
exceptions thrown from callback handler methods don’t affect the ongoing transaction
Answer:
B) callback handler methods may have any access modifier
C) each lifecycle callback event can be handled by maximum one session bean method
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
|