A developer creates a stateless session bean. This session bean needs data from a remote system. Reading this data takes a long time. Assume that the data will NOT change during the life time of the bean and that the information to connect to the remote system is defined in JNDI. Which statement describes how to manage the data correctly?
Read the data in the bean's constructor.
The data can only be read in the bean's business methods.
Read the data in a method which is annotated with @PrePassivate.
Read the data in a method which is annotated with @PostActivate.
Read the data in a method which is annotated with @PostConstruct.
Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ?