Card 49 / 59: What is the typical order of life cycle stages an average stateless session bean goes through starting from its instantiation till retiring?
A)
Instantiation by the EJB container, PostConstruct call back, Dependency injection, PrePassivate
B)
Instantiation by the EJB container, PostConstruct call back, Dependency injection, PreDestroy
C)
Instantiation by the client code, Dependency injection, PostConstruct call back, PreDestroy
D)
Instantiation by the EJB container, Dependency injection, PostConstruct call back, PreDestroy
Answer:
D) Instantiation by the EJB container, Dependency injection, PostConstruct call back, PreDestroy
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
The right order is:
Instantiation by the EJB container,
Dependency injection,
PostConstruct call back,
PreDestroy call back
|