Card 50 / 59: What is the typical order of life cycle stages an average stateful session bean goes through starting from its instantiation till retiring?
A)
Bean instantiated, Dependency injection, PostConstruct , PreDestroy
B)
Bean instantiated, Dependency injection, PostActivate , PrePassivate
C)
Bean fetched from the passive state, Dependency injection, PostActivate , PrePassivate
D)
Bean fetched from the passive state, PostActivate , PrePassivate
Answer:
A) Bean instantiated, Dependency injection, PostConstruct , PreDestroy
D) Bean fetched from the passive state, PostActivate , PrePassivate
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
1. Bean instantiated by the EJB container, Dependency injection, PostConstruct , PreDestroy
2. Bean fetched from the passive state, PostActivate , PrePassivate
|